From 76b74ab2f16d49df3cf021ca645cb0243f3b2861 Mon Sep 17 00:00:00 2001 From: Corbin Date: Sun, 21 Aug 2016 11:52:53 -0700 Subject: [PATCH] fetchfossil: Don't support MD5. This effectively means that SHA256 is the only way to go. I'm not really bothered by this. --- pkgs/build-support/fetchfossil/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/fetchfossil/default.nix b/pkgs/build-support/fetchfossil/default.nix index e0bde91f1201..439c96019a41 100644 --- a/pkgs/build-support/fetchfossil/default.nix +++ b/pkgs/build-support/fetchfossil/default.nix @@ -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;