2645e1a1eb
Current, the `cabal2nix` derivation contains both the executable, and a wrapper that adds `nix` and `nix-prefetch-scripts`, which are required for some features. However, when calling `callCabal2nix` to create a derivation from a cabal file at evaluation time, these features are not actually used, but the huge closure of `nix-prefetch-scripts` (which includes multiple vcs, as well as python and perl) still needs to be fetched. This commit splits cabal2nix into a lightweight version that is a standalone static binary (`cabal2nix-unwrapped`), and a wrapper that includes the proper dependencies in the path for full usage of the command line utility (`cabal2nix`). This commit also switches to the default ghc, to reduce the likelyhood of building a different ghc when calling `callCabal2nix`. |
||
---|---|---|
.. | ||
patches | ||
configuration-common.nix | ||
configuration-ghc-8.2.x.nix | ||
configuration-ghc-8.4.x.nix | ||
configuration-ghc-8.6.x.nix | ||
configuration-ghc-8.8.x.nix | ||
configuration-ghc-8.10.x.nix | ||
configuration-ghc-head.nix | ||
configuration-ghcjs.nix | ||
configuration-hackage2nix.yaml | ||
configuration-nix.nix | ||
configuration-tensorflow.nix | ||
default.nix | ||
generic-builder.nix | ||
generic-stack-builder.nix | ||
hackage-packages.nix | ||
hoogle-local-wrapper.sh | ||
hoogle.nix | ||
initial-packages.nix | ||
lib.nix | ||
make-package-set.nix | ||
non-hackage-packages.nix | ||
stack-hook.sh | ||
with-packages-wrapper.nix |