haskellSrc2nix: Change sha arg when sha256 is null.

Otherwise it just fails due to no nix-prefetch-url
This commit is contained in:
Shea Levy 2017-03-04 13:18:14 -05:00
parent 56e71f62dc
commit ef5986e03c

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 ];