diff options
author | Shea Levy <shea@shealevy.com> | 2017-03-04 13:18:14 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2017-03-04 13:18:14 -0500 |
commit | ef5986e03cf3e4943eb018e39d6d71222cba5975 (patch) | |
tree | dee30d2d5bcfde6562919cc8487a89d3112df5c5 /pkgs/development | |
parent | 56e71f62dc49e64fcd37768cc7d1ec219d4990e6 (diff) |
haskellSrc2nix: Change sha arg when sha256 is null.
Otherwise it just fails due to no nix-prefetch-url
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/haskell-modules/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/default.nix b/pkgs/development/haskell-modules/default.nix index 7ba06b6b60c1..df17c769ea2d 100644 --- a/pkgs/development/haskell-modules/default.nix +++ b/pkgs/development/haskell-modules/default.nix @@ -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 ]; |