From ef5986e03cf3e4943eb018e39d6d71222cba5975 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 4 Mar 2017 13:18:14 -0500 Subject: [PATCH] haskellSrc2nix: Change sha arg when sha256 is null. Otherwise it just fails due to no nix-prefetch-url --- pkgs/development/haskell-modules/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ];