nixpkgs/pkgs/by-name/pr/prettier-plugin-go-template/package.nix
Jan Kremer eaa59831a1
prettier-plugin-go-template: add package (#325309)
* prettier-plugin-go-template: add package

* prettier-plugin-go-template: fix package

* prettier-plugin-go-template: add mainProgram

* Update pkgs/by-name/pr/prettier-plugin-go-template/package.nix

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>

---------

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
2024-07-17 23:11:45 +02:00

30 lines
735 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "prettier-plugin-go-template";
version = "0-unstable-2023-07-26";
src = fetchFromGitHub {
owner = "NiklasPor";
repo = pname;
rev = "d91c82e1377b89592ea3365e7e5569688fbc7954";
hash = "sha256-3Tvh+OzqDTtzoaTp5dZpgEQiNA2Y2dbyq4SV9Od499A=";
};
npmDepsHash = "sha256-PpJnVZFRxpUHux2jIBDtyBS4qNo6IJY4kwTAq6stEVQ=";
dontNpmBuild = true;
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 ];
};
}