Skip to content

Commit 1a31e44

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/by-name/di/distribution/package.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
distribution,
88
}:
99

10-
buildGoModule rec {
10+
buildGoModule (finalAttrs: {
1111
pname = "distribution";
1212
version = "3.0.0";
1313

1414
src = fetchFromGitHub {
1515
owner = "distribution";
1616
repo = "distribution";
17-
tag = "v${version}";
17+
tag = "v${finalAttrs.version}";
1818
hash = "sha256-myezQTEdH7kkpCoAeZMf5OBxT4Bz8Qx6vCnwim230RY=";
1919
};
2020

@@ -30,7 +30,7 @@ buildGoModule rec {
3030
passthru = {
3131
tests.version = testers.testVersion {
3232
package = distribution;
33-
version = "v${version}";
33+
version = "v${finalAttrs.version}";
3434
};
3535
updateScript = nix-update-script { };
3636
};
@@ -50,4 +50,4 @@ buildGoModule rec {
5050
mainProgram = "registry";
5151
platforms = platforms.unix;
5252
};
53-
}
53+
})

0 commit comments

Comments
 (0)