haskellSrc2nix: preferLocalBuild and use unwrapped cabal2nix.

No need to download bazaar etc...
This commit is contained in:
Shea Levy 2017-05-01 18:21:42 -04:00
parent a5f436814a
commit 9f2bbf65af

View File

@ -89,7 +89,8 @@ self: let
sha256Arg = if isNull sha256 then "--sha256=" else ''--sha256="${sha256}"'';
in pkgs.stdenv.mkDerivation {
name = "cabal2nix-${name}";
buildInputs = [ pkgs.cabal2nix ];
buildInputs = [ pkgs.haskellPackages.cabal2nix ];
preferLocalBuild = true;
phases = ["installPhase"];
LANG = "en_US.UTF-8";
LOCALE_ARCHIVE = pkgs.lib.optionalString pkgs.stdenv.isLinux "${pkgs.glibcLocales}/lib/locale/locale-archive";