Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-17 Thread Peter Simons
Hi Richard, Everytime I try and override a package with ghcWithPackages, it ends up rebuilding every Haskell library. For instance, I have this shell.nix https://gist.github.com/purefn/026625ad116b05ff9a8d. I cannot reproduce this phenomenon. I saved your configuration to default.nix |

Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-17 Thread Richard Wallace
Hi Peter, I don't think I was very clear, sorry about that. The thing that I'm seeing is that when I run `nix-build default.nix -A AesonBson` with no overrides, as in this `default.nix` | with (import nixpkgs {}).pkgs; | let | modifiedHaskellPackages = haskellngPackages.override { |

Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-17 Thread Peter Simons
Hi Richard, I had hoped/expected that only AesonBson would need to be rebuilt and not things like text and friends. yes, that is exactly what should happen (and that's exactly what's happening on my system). What does your ~/.nixpkgs/config.nix file look like? Also, can you please try

Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-16 Thread Richard Wallace
I feel like I must be missing something, because everytime I try and override a package with ghcWithPackages, it ends up rebuilding every Haskell library. For instance, I have this shell.nix https://gist.github.com/purefn/026625ad116b05ff9a8d. In this case, I've overridden the AesonBson package

Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-13 Thread Peter Simons
Hi Thomas, How can I override a package to enable profiling? commit [1] adds helper functions that allow referring to any package foo as enableLibraryProfiling foo to get a variant that supports profiling. If you want to enable profiling for *all* packages, then you can replace the

Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-12 Thread Thomas Tuegel
On Sun, Jan 11, 2015 at 1:41 PM, Peter Simons sim...@cryp.to wrote: The topic of today's posting is: Fixing Build Failures! I know all about Cabal builds. How can I override a Nix build environment? -- Every Haskell

[Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-11 Thread Peter Simons
The topic of today's posting is: Fixing Build Failures! I know all about Cabal builds. How can I override a Nix build environment? -- Every Haskell expression expects an argument called mkDerivation -- the function that

Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-11 Thread Thomas Hunger
Thanks, that's super useful! One more question: How would I get older versions of certain packages (e.g. I need optparse-applicative 0.10 for elm-make) into hackage-packages.nix? ~ On 11 January 2015 at 19:41, Peter Simons sim...@cryp.to wrote: The topic of today's posting is: Fixing Build

Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part II

2015-01-11 Thread Peter Simons
Hi Thomas, How would I get older versions of certain packages (e.g. I need optparse-applicative 0.10 for elm-make) into hackage-packages.nix? by adding optparse-applicative == 0.10.* to the 'extraPackages' list at https://github.com/NixOS/cabal2nix/blob/master/src/hackage2nix.hs#L153-158.