[Nix-dev] Overriding Haskell dependencies

Michael Adler therisen06 at gmail.com
Sun May 31 11:57:50 CEST 2015


Hi,

I'm new to Nix and I'm trying to create a custom Haskell profile with the
following properties:

- if a package version is specified in LTS Stackage, use this one
- otherwise, use the one from Nix haskellPackages

This is what my setup looks like at the moment:

https://gist.github.com/michaeladler/233b9838a1394a928d26

While haskellEnv works fine, stackageEnv results in infinite recursion:

error: while evaluating the attribute ‘paths’ of the derivation
‘ghc-7.10.1’ at nixpkgs/pkgs/build-support/trivial-builders.nix:10:14:
while evaluating the attribute ‘nativeBuildInputs’ of the derivation
‘haskell-text-1.2.0.6’ at
nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:123:3:
while evaluating the attribute ‘nativeBuildInputs’ of the derivation
‘haskell-QuickCheck-2.8.1’ at
nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:123:3:
while evaluating the attribute ‘propagatedNativeBuildInputs’ of the
derivation ‘haskell-test-framework-0.8.1.1’ at
nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:123:3:
while evaluating the attribute ‘propagatedNativeBuildInputs’ of the
derivation ‘haskell-xml-1.3.14’ at
nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:123:3:
infinite recursion encountered

I can't see the difference between haskellEnv and stackageEnv; only that
one works and one doesn't. Any advice would be much appreciated.

Best regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150531/b3871359/attachment.html 


More information about the nix-dev mailing list