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 c14812e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ jobs:
- name: Build nix packages
run: nix shell -f '<nixpkgs>' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs

- name: Check error logs
if: failure()
run: nix log /nix/store/bvvgd37v5s4scxny0nbjbs90sjgyzc6j-gqlgen-0.17.45.drv

- name: Push cache to Cachix
if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }}
run: |
Expand Down
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
15 changes: 15 additions & 0 deletions pkgs/gqlgen/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ 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=";
}

0 comments on commit c14812e

Please sign in to comment.