Skip to content

Commit c86c553

Browse files
committed
gqlgenc: use finalAttrs
1 parent df06134 commit c86c553

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/by-name/gq/gqlgenc/package.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
versionCheckHook,
66
}:
77

8-
buildGoModule rec {
8+
buildGoModule (finalAttrs: {
99
pname = "gqlgenc";
1010
version = "0.32.1";
1111

1212
src = fetchFromGitHub {
1313
owner = "yamashou";
1414
repo = "gqlgenc";
15-
rev = "v${version}";
15+
rev = "v${finalAttrs.version}";
1616
sha256 = "sha256-AGbE+R3502Igl4/HaN8yvFVJBsKQ6iVff8IEvddJLEo=";
1717
};
1818

@@ -26,7 +26,7 @@ buildGoModule rec {
2626

2727
ldflags = [
2828
"-X"
29-
"main.version=${version}"
29+
"main.version=${finalAttrs.version}"
3030
];
3131

3232
doInstallCheck = true;
@@ -44,4 +44,4 @@ buildGoModule rec {
4444
license = licenses.mit;
4545
maintainers = with maintainers; [ wattmto ];
4646
};
47-
}
47+
})

0 commit comments

Comments
 (0)