[Nix-dev] GHC 7.8.2-binary.nix to bootstrap GHC HEAD

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Sat May 3 08:08:17 CEST 2014


On 05/03/2014 07:42 AM, Mateusz Kowalczyk wrote:
> On 05/03/2014 07:15 AM, Mateusz Kowalczyk wrote:
>> Amongst my struggles to get recent GHC HEAD snapshots to work on NixOS,
>> I noticed that GHC 7.4.2 is used to bootstrap it. Perhaps that's what's
>> causing the problems[1] so my current goal is to make a binary install
>> of GHC 7.8.2 work. To be clear, I want to be able to install the GHC
>> 7.8.2 binary provided by the GHC team, which I can then hopefully use to
>> bootstrap HEAD.
>>
>> [snip]
>>
>> I am now stuck here, I don't know how to get the binaries to see the
>> libraries properly. All this happens during the installPhase (left
>> default) step, copying the libs followed by whatever it is the binaries
>> are meant to be doing. The next thing that comes to mind is to gut GHC's
>> install phase to let me patchelf the binaries after copying the
>> libraries, but that doesn't sound pretty. Perhaps I am simply doing
>> something very wrong, or the nix code from 7.4.2 messes something up.
>>
>> I am attaching the two relevant files. Any input *very* welcome.
>>
>> [1]: https://github.com/NixOS/nixpkgs/issues/2428
>>
>>
>>
>>
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
> 
> Alternatively, instructions on how to use GHC 7.8.2 that we can build
> (or get from Hydra) already to build 7.9 would probably be much easier.
> 

This was actually as easy as:

ghc782Binary = pkgs.haskellPackages_ghc782.ghc;

I wish I thought of this about 6 hours ago.

Apologies for the noise, I hope we can have building HEAD soon.

-- 
Mateusz K.


More information about the nix-dev mailing list