tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fetchgit: clean up md5 references
Theodore Ni
2 years ago
63804228
a96b4663
+2
-4
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
fetchgit
default.nix
+2
-4
pkgs/build-support/fetchgit/default.nix
···
11
11
in "${if matched == null then base else builtins.head matched}${appendShort}";
12
12
in
13
13
lib.makeOverridable (
14
14
-
{ url, rev ? "HEAD", md5 ? "", sha256 ? "", hash ? "", leaveDotGit ? deepClone
14
14
+
{ url, rev ? "HEAD", sha256 ? "", hash ? "", leaveDotGit ? deepClone
15
15
, fetchSubmodules ? true, deepClone ? false
16
16
, branchName ? null
17
17
, sparseCheckout ? []
···
56
56
assert deepClone -> leaveDotGit;
57
57
assert nonConeMode -> (sparseCheckout != []);
58
58
59
59
-
if md5 != "" then
60
60
-
throw "fetchgit does not support md5 anymore, please use sha256"
61
61
-
else if hash != "" && sha256 != "" then
59
59
+
if hash != "" && sha256 != "" then
62
60
throw "Only one of sha256 or hash can be set"
63
61
else if builtins.isString sparseCheckout then
64
62
# Changed to throw on 2023-06-04