on iko/ghcjs-patch-master help sign in
Expose plan-nix for alex, happy and hscolour (#267)

This exposes the plan nix though: bootstrap.haskell.packages.alex-project.plan-nix By building this on hydra you can get better errors and I think it helps ensure cache stays populated with the dependencies needed to build the plan. It is also handy to be able to inspect the nix files that are generated by plan-to-nix.

commitf2c2520115a0ce2fb35d63d4a248e6122a0865ac authorHamish Mackenzie <Hamish.Mackenzie@iohk.io> dateWed 23 Oct 2019, 20:49 (7 years ago) parent39739d9
1 file changed+9−7
overlays/bootstrap.nix+9−7
overlays/bootstrap.nix+9−7
@@ -266,25 +266,27 @@ self: super: rec {
266266 # hackage with haskell.nix. For alex and happy we
267267 # need to use the boot strap compiler as we need them
268268 # to build ghcs from source.
269− alex = (hackage-package {
269+ alex-project = hackage-project {
270270 inherit ghc;
271271 inherit (bootstrap.haskell.packages) cabal-install nix-tools hpack;
272272 name = "alex"; version = "3.2.4";
273273 index-state = "2019-10-20T00:00:00Z";
274− }).components.exes.alex;
275− happy = (hackage-package {
274+ };
275+ alex = bootstrap.haskell.packages.alex-project.alex.components.exes.alex;
276+ happy-project = hackage-project {
276277 inherit ghc;
277278 inherit (bootstrap.haskell.packages) cabal-install nix-tools hpack;
278279 name = "happy"; version = "1.19.11";
279280 index-state = "2019-10-20T00:00:00Z";
280− }).components.exes.happy;
281−
282− hscolour = (hackage-package {
281+ };
282+ happy = bootstrap.haskell.packages.happy-project.happy.components.exes.happy;
283+ hscolour-project = hackage-project {
283284 inherit ghc;
284285 inherit (bootstrap.haskell.packages) cabal-install nix-tools hpack;
285286 name = "hscolour"; version = "1.24.4";
286287 index-state = "2019-10-20T00:00:00Z";
287− }).components.exes.HsColour;
288+ };
289+ hscolour = bootstrap.haskell.packages.hscolour-project.hscolour.components.exes.HsColour;
288290 };
289291 };
290292 };