We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a31e44 commit 270d440Copy full SHA for 270d440
pkgs/by-name/at/athens/package.nix
@@ -6,14 +6,14 @@
6
athens,
7
}:
8
9
-buildGoModule rec {
+buildGoModule (finalAttrs: {
10
pname = "athens";
11
version = "0.15.4";
12
13
src = fetchFromGitHub {
14
owner = "gomods";
15
repo = "athens";
16
- rev = "v${version}";
+ tag = "v${finalAttrs.version}";
17
hash = "sha256-6NBdif8rQ1aj4nTYXhrWyErzRv0q8WpIheRnb2FCnkU=";
18
};
19
@@ -22,7 +22,7 @@ buildGoModule rec {
22
env.CGO_ENABLED = "0";
23
ldflags = [
24
"-s"
25
- "-X github.com/gomods/athens/pkg/build.version=${version}"
+ "-X github.com/gomods/athens/pkg/build.version=${finalAttrs.version}"
26
];
27
28
subPackages = [ "cmd/proxy" ];
@@ -47,4 +47,4 @@ buildGoModule rec {
47
48
platforms = platforms.unix;
49
50
-}
+})
0 commit comments