From 9c430a239d2e6ec7d3efee90c14a6b0f3edddb35 Mon Sep 17 00:00:00 2001 From: micnncim Date: Tue, 23 Apr 2024 21:31:42 +0900 Subject: [PATCH] Add gqlgen package Signed-off-by: micnncim --- default.nix | 1 + pkgs/gqlgen/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/gqlgen/default.nix diff --git a/default.nix b/default.nix index 9480377..55d610f 100644 --- a/default.nix +++ b/default.nix @@ -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 { }; diff --git a/pkgs/gqlgen/default.nix b/pkgs/gqlgen/default.nix new file mode 100644 index 0000000..3e9e658 --- /dev/null +++ b/pkgs/gqlgen/default.nix @@ -0,0 +1,19 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "gqlgen"; + version = "0.17.45"; + + src = fetchFromGitHub { + owner = "99designs"; + repo = "gqlgen"; + rev = "v${version}"; + hash = "sha256-iWTeI21B/xJu/LFKGYwu0ggjh/59SlE/qm+5aPzyN9U="; + }; + + vendorHash = "sha256-Qk+93pnqEOf/xOfVNQ82KiDOiO6ucjffYGfwONNPRaw="; + + doCheck = false; + + subPackages = [ "." ]; +}