hslib: Function to extract the haskell build inputs of a package.

This works by extracting out some logic from generic-builder.nix to
make it possible to get at the relevant information by overriding
mkDerivation for the haskell package.
This commit is contained in:
Shea Levy
2017-12-23 11:44:18 -05:00
parent 2f0b642d35
commit d545ef3fa1
3 changed files with 94 additions and 33 deletions

View File

@@ -33,7 +33,7 @@ let
inherit (haskellLib) overrideCabal;
mkDerivationImpl = pkgs.callPackage ./generic-builder.nix {
inherit stdenv;
inherit stdenv haskellLib;
inherit (pkgs) fetchurl pkgconfig glibcLocales coreutils gnugrep gnused;
nodejs = pkgs.nodejs-slim;
jailbreak-cabal = if (self.ghc.cross or null) != null