Skip to content

Commit

Permalink
prettier-plugin-go-template: add package (#325309)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
jukremer and wegank authored Jul 17, 2024
1 parent 923556e commit eaa5983
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10149,6 +10149,12 @@
githubId = 12773748;
matrix = "@j.r:chaos.jetzt";
};
jukremer = {
email = "nixpkgs@jankremer.eu";
github = "jukremer";
githubId = 79042825;
name = "Jan Kremer";
};
juliendehos = {
email = "dehos@lisic.univ-littoral.fr";
github = "juliendehos";
Expand Down
29 changes: 29 additions & 0 deletions pkgs/by-name/pr/prettier-plugin-go-template/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
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 ];
};
}

0 comments on commit eaa5983

Please sign in to comment.