8 pname = "prettier-plugin-go-template";
9 version = "0.0.15-unstable-2023-07-26";
11 src = fetchFromGitHub {
14 rev = "d91c82e1377b89592ea3365e7e5569688fbc7954";
15 hash = "sha256-3Tvh+OzqDTtzoaTp5dZpgEQiNA2Y2dbyq4SV9Od499A=";
18 npmDepsHash = "sha256-PpJnVZFRxpUHux2jIBDtyBS4qNo6IJY4kwTAq6stEVQ=";
22 # Fixes error: Cannot find module 'prettier'
24 pushd "$nodeModulesPath"
25 find -mindepth 1 -maxdepth 1 -type d -print0 | grep --null-data -Exv "\./(ulid|prettier)" | xargs -0 rm -rfv
30 description = "Fixes prettier formatting for go templates";
31 mainProgram = "prettier-plugin-go-template";
32 homepage = "https://github.com/NiklasPor/prettier-plugin-go-template";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ jukremer ];