forked from mirrors/nixpkgs
haskellSrc2nix: Change sha arg when sha256 is null.
Otherwise it just fails due to no nix-prefetch-url
This commit is contained in:
parent
56e71f62dc
commit
ef5986e03c
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue