Merge pull request #23495 from shlevy/haskellSrc2nix-no-sha
haskellSrc2nix: Change sha arg when sha256 is null.
This commit is contained in:
commit
9aed6ccb4b
@ -56,7 +56,7 @@ let
|
|||||||
|
|
||||||
haskellSrc2nix = { name, src, sha256 ? null }:
|
haskellSrc2nix = { name, src, sha256 ? null }:
|
||||||
let
|
let
|
||||||
sha256Arg = if isNull sha256 then "" else ''--sha256="${sha256}"'';
|
sha256Arg = if isNull sha256 then "--sha256=" else ''--sha256="${sha256}"'';
|
||||||
in pkgs.stdenv.mkDerivation {
|
in pkgs.stdenv.mkDerivation {
|
||||||
name = "cabal2nix-${name}";
|
name = "cabal2nix-${name}";
|
||||||
buildInputs = [ pkgs.cabal2nix ];
|
buildInputs = [ pkgs.cabal2nix ];
|
||||||
|
Loading…
Reference in New Issue
Block a user