Merge pull request #23495 from shlevy/haskellSrc2nix-no-sha

haskellSrc2nix: Change sha arg when sha256 is null.
This commit is contained in:
Peter Simons 2017-03-04 19:48:25 +01:00 committed by GitHub
commit 9aed6ccb4b

View File

@ -56,7 +56,7 @@ let
haskellSrc2nix = { name, src, sha256 ? null }:
let
sha256Arg = if isNull sha256 then "" else ''--sha256="${sha256}"'';
sha256Arg = if isNull sha256 then "--sha256=" else ''--sha256="${sha256}"'';
in pkgs.stdenv.mkDerivation {
name = "cabal2nix-${name}";
buildInputs = [ pkgs.cabal2nix ];