Skip to content

Commit

Permalink
Use static cabal2nix in callCabal2nix
Browse files Browse the repository at this point in the history
(cherry picked from commit 627444c)

The use of this function is disallowed in nixpkgs, and purely there for
the convenience of downstream users. This improves closure size without
any loss of functionality.
  • Loading branch information
ElvishJerricco authored and Ericson2314 committed May 16, 2018
1 parent 73d231c commit 5e4a52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/haskell-modules/make-package-set.nix
Expand Up @@ -111,7 +111,7 @@ let
sha256Arg = if isNull sha256 then "--sha256=" else ''--sha256="${sha256}"'';
in pkgs.stdenv.mkDerivation {
name = "cabal2nix-${name}";
buildInputs = [ pkgs.haskellPackages.cabal2nix ];
nativeBuildInputs = [ pkgs.cabal2nix ];
preferLocalBuild = true;
phases = ["installPhase"];
LANG = "en_US.UTF-8";
Expand Down

0 comments on commit 5e4a52c

Please sign in to comment.