From 32f4ae19a6838fdbd4d1bde073bdb55b48b096d7 Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Tue, 2 Jun 2020 12:58:30 +1200 Subject: [PATCH] Add cabal-install and hpack to closure size check --- build.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.nix b/build.nix index 3ca8b20803..861faaf1ee 100644 --- a/build.nix +++ b/build.nix @@ -46,7 +46,12 @@ in rec { # use) check-hydra = pkgs.buildPackages.callPackage ./scripts/check-hydra.nix {}; check-closure-size = pkgs.buildPackages.callPackage ./scripts/check-closure-size.nix { - inherit (haskell) nix-tools; + # Includes cabal-install and hpack since these are commonly used. + nix-tools = pkgs.linkFarm "common-tools" [ + { name = "nix-tools"; path = haskell.nix-tools; } + { name = "cabal-install"; path = haskell.cabal-install; } + { name = "hpack"; path = haskell.haskellPackages.hpack.components.exes.hpack; } + ]; }; };