mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
fetchfossil: Don't support MD5.
This effectively means that SHA256 is the only way to go. I'm not really bothered by this.
This commit is contained in:
parent
2d94071cc4
commit
76b74ab2f1
|
@ -1,6 +1,6 @@
|
||||||
{stdenv, fossil}:
|
{stdenv, fossil}:
|
||||||
|
|
||||||
{name ? null, url, rev, md5 ? null, sha256 ? null}:
|
{name ? null, url, rev, sha256}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
||||||
|
@ -11,9 +11,9 @@ stdenv.mkDerivation {
|
||||||
# https://www.fossil-scm.org/index.html/doc/trunk/www/env-opts.md
|
# https://www.fossil-scm.org/index.html/doc/trunk/www/env-opts.md
|
||||||
impureEnvVars = [ "http_proxy" ];
|
impureEnvVars = [ "http_proxy" ];
|
||||||
|
|
||||||
outputHashAlgo = if md5 != null then "md5" else "sha256";
|
outputHashAlgo = "sha256";
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = if md5 != null then md5 else sha256;
|
outputHash = sha256;
|
||||||
|
|
||||||
inherit url rev;
|
inherit url rev;
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
|
|
Loading…
Reference in a new issue