Skip to content

Commit 51af7d6

Browse files
committed
jj: use finalAttrs
Signed-off-by: Paul Meyer <[email protected]>
1 parent 99a2276 commit 51af7d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/by-name/jj/jj/package.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
runCommand,
99
jj,
1010
}:
11-
buildGoModule rec {
11+
buildGoModule (finalAttrs: {
1212
pname = "jj";
1313
version = "1.9.2";
1414

1515
src = fetchFromGitHub {
1616
owner = "tidwall";
1717
repo = "jj";
18-
rev = "v${version}";
18+
rev = "v${finalAttrs.version}";
1919
hash = "sha256-Yijap5ZghTBe1ahkQgjjxuo++SriJWXgRqrNXIVQ0os=";
2020
};
2121

@@ -28,7 +28,7 @@ buildGoModule rec {
2828
ldflags = [
2929
"-s"
3030
"-w"
31-
"-X main.version=${version}"
31+
"-X main.version=${finalAttrs.version}"
3232
];
3333

3434
passthru = {
@@ -71,4 +71,4 @@ buildGoModule rec {
7171
mainProgram = "jj";
7272
maintainers = with maintainers; [ katexochen ];
7373
};
74-
}
74+
})

0 commit comments

Comments
 (0)