Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
984 B
Nix
37 lines
984 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildNpmPackage {
|
|
pname = "prettier-plugin-go-template";
|
|
version = "0.0.15-unstable-2023-07-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NiklasPor";
|
|
repo = "prettier-plugin-go-template";
|
|
rev = "d91c82e1377b89592ea3365e7e5569688fbc7954";
|
|
hash = "sha256-3Tvh+OzqDTtzoaTp5dZpgEQiNA2Y2dbyq4SV9Od499A=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-PpJnVZFRxpUHux2jIBDtyBS4qNo6IJY4kwTAq6stEVQ=";
|
|
|
|
dontNpmPrune = true;
|
|
|
|
# Fixes error: Cannot find module 'prettier'
|
|
postInstall = ''
|
|
pushd "$nodeModulesPath"
|
|
find -mindepth 1 -maxdepth 1 -type d -print0 | grep --null-data -Exv "\./(ulid|prettier)" | xargs -0 rm -rfv
|
|
popd
|
|
'';
|
|
|
|
meta = {
|
|
description = "Fixes prettier formatting for go templates";
|
|
mainProgram = "prettier-plugin-go-template";
|
|
homepage = "https://github.com/NiklasPor/prettier-plugin-go-template";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jukremer ];
|
|
};
|
|
}
|