Skip to content

Commit 270d440

Browse files
committed
athens: use finalAttrs
Signed-off-by: Paul Meyer <[email protected]>
1 parent 1a31e44 commit 270d440

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/by-name/at/athens/package.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
athens,
77
}:
88

9-
buildGoModule rec {
9+
buildGoModule (finalAttrs: {
1010
pname = "athens";
1111
version = "0.15.4";
1212

1313
src = fetchFromGitHub {
1414
owner = "gomods";
1515
repo = "athens";
16-
rev = "v${version}";
16+
tag = "v${finalAttrs.version}";
1717
hash = "sha256-6NBdif8rQ1aj4nTYXhrWyErzRv0q8WpIheRnb2FCnkU=";
1818
};
1919

@@ -22,7 +22,7 @@ buildGoModule rec {
2222
env.CGO_ENABLED = "0";
2323
ldflags = [
2424
"-s"
25-
"-X github.com/gomods/athens/pkg/build.version=${version}"
25+
"-X github.com/gomods/athens/pkg/build.version=${finalAttrs.version}"
2626
];
2727

2828
subPackages = [ "cmd/proxy" ];
@@ -47,4 +47,4 @@ buildGoModule rec {
4747
];
4848
platforms = platforms.unix;
4949
};
50-
}
50+
})

0 commit comments

Comments
 (0)