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:
Corbin 2016-08-21 11:52:53 -07:00
parent 2d94071cc4
commit 76b74ab2f1

View File

@ -1,6 +1,6 @@
{stdenv, fossil}:
{name ? null, url, rev, md5 ? null, sha256 ? null}:
{name ? null, url, rev, sha256}:
stdenv.mkDerivation {
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
impureEnvVars = [ "http_proxy" ];
outputHashAlgo = if md5 != null then "md5" else "sha256";
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = if md5 != null then md5 else sha256;
outputHash = sha256;
inherit url rev;
preferLocalBuild = true;