Skip to content

Commit 74453f2

Browse files
committed
f2: use finalAttrs
1 parent ba45abb commit 74453f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

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

7-
buildGoModule rec {
7+
buildGoModule (finalAttrs: {
88
pname = "f2";
99
version = "2.1.1";
1010

1111
src = fetchFromGitHub {
1212
owner = "ayoisaiah";
1313
repo = "f2";
14-
tag = "v${version}";
14+
tag = "v${finalAttrs.version}";
1515
hash = "sha256-hl4giLTQtqJiPseiTzWPtksEYlyQpE1UOC7JMUF9v4Y=";
1616
};
1717

@@ -20,7 +20,7 @@ buildGoModule rec {
2020
ldflags = [
2121
"-s"
2222
"-w"
23-
"-X=github.com/ayoisaiah/f2/v2/app.VersionString=${version}"
23+
"-X=github.com/ayoisaiah/f2/v2/app.VersionString=${finalAttrs.version}"
2424
];
2525

2626
# has no tests
@@ -33,4 +33,4 @@ buildGoModule rec {
3333
maintainers = with lib.maintainers; [ zendo ];
3434
mainProgram = "f2";
3535
};
36-
}
36+
})

0 commit comments

Comments
 (0)