about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2018-02-11 18:33:20 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-16 15:31:41 -0400
commit5e4a52cc0ed184dc866917db72a14ef76023e161 (patch)
tree2adb40383a30cda6054d802b6abb295d7966b894 /pkgs
parent73d231c48856b6db9824c1ceb3b7315846d08f8a (diff)
Use static cabal2nix in callCabal2nix
(cherry picked from commit 627444cfc2354d79ade0a59b55e8182729e51e16)

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.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/make-package-set.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/make-package-set.nix b/pkgs/development/haskell-modules/make-package-set.nix
index a209559c2e8ad..d7ab533d3bfb7 100644
--- a/pkgs/development/haskell-modules/make-package-set.nix
+++ b/pkgs/development/haskell-modules/make-package-set.nix
@@ -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";