mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #23495 from shlevy/haskellSrc2nix-no-sha
haskellSrc2nix: Change sha arg when sha256 is null.
This commit is contained in:
commit
9aed6ccb4b
1 changed files with 1 additions and 1 deletions
|
@ -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