Skip to content

Commit b9df781

Browse files
committed
gup: use SRI hash and fix updateScript
1 parent b488ef7 commit b9df781

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkgs/development/tools/build-managers/gup/default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
stdenv.mkDerivation rec {
44
version = "0.9.2";
55
src = fetchFromGitHub {
6+
hash = "sha256-bV5HauM0xmRI/9Pxp1cYLPLA8PbFvPER2y4mAMmgchs=";
67
owner = "timbertson";
78
repo = "gup";
8-
rev = "version-0.9.2";
9-
sha256 = "06vjl34h09ifvc8z3g65yvqc1wic31bsgwfkzx469iilwdm4fpkd";
9+
rev = "version-${version}";
1010
};
1111
pname = "gup";
1212
nativeBuildInputs = [ python3 which pylint ];
@@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
3131
--set repo gup \
3232
--set type fetchFromGitHub \
3333
--set rev 'version-{version}' \
34+
--nix-literal rev 'version-''${version}'\
3435
--modify-nix default.nix
3536
''
3637
];

0 commit comments

Comments
 (0)