@@ -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 };