Skip to content

Commit

Permalink
Add gqlgen package
Browse files Browse the repository at this point in the history
Signed-off-by: micnncim <micnncim@gmail.com>
  • Loading branch information
micnncim committed Apr 23, 2024
1 parent e8830ae commit 140e32b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

gctx = pkgs.callPackage ./pkgs/gctx { };
gh-sync = pkgs.callPackage ./pkgs/gh-sync { };
gqlgen = pkgs.callPackage ./pkgs/gqlgen { };
kubectl-reveal-secret = pkgs.callPackage ./pkgs/kubectl-reveal { };
mockgen = pkgs.callPackage ./pkgs/mockgen { };
slack-cli = pkgs.callPackage ./pkgs/slack-cli { };
Expand Down
25 changes: 25 additions & 0 deletions pkgs/gqlgen/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
name = "gqlgen";
version = "0.14.0";

src = fetchFromGitHub {
owner = "99designs";
repo = "gqlgen";
rev = "v${version}";
sha256 = "sha256-pBvPTLNrDZMyoxtsin+MrUCC3www864TPBrOCFNb2U8=";
};

vendorSha256 = "sha256-YWoe3lQS+0bMfUiNzC+n7qlQbCS8WO+jLuaQk5X0+v8=";

subPackages = [ "." ];

allowGoReference = true;

ldflags = [
"-s"
"-w"
"-X github.com/99designs/gqlgen/graphql.Version=v${version}"
];
}

0 comments on commit 140e32b

Please sign in to comment.