Skip to content

Commit 5238267

Browse files
authored
tests.fetchtorrent: avoid builtins.convertHash (NixOS#460994)
2 parents d7827d1 + 081f217 commit 5238267

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pkgs/build-support/fetchtorrent/tests.nix

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,7 @@ let
6262
# Fixed output derivation hash is identical for all derivations: the empty
6363
# directory.
6464
fetchtorrentWithHash =
65-
args:
66-
fetchtorrent (
67-
{
68-
hash = builtins.convertHash {
69-
hash = emptyDirectory.outputHash;
70-
toHashFormat = "sri";
71-
hashAlgo = emptyDirectory.outputHashAlgo;
72-
};
73-
}
74-
// args
75-
);
65+
args: fetchtorrent ({ hash = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo="; } // args);
7666
in
7767
# Seems almost but not quite worth using lib.mapCartesianProduct...
7868
builtins.mapAttrs (n: v: testers.invalidateFetcherByDrvHash fetchtorrentWithHash v) {

0 commit comments

Comments
 (0)