From df4c0aeff864f8d3308afc1f4386895fcd3e990d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 22 Feb 2017 23:21:27 +0100 Subject: [PATCH] shellcheck: reduce closure size from 1.5GB to 20mb --- pkgs/top-level/all-packages.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 35fa5796807d..d7a4cce9468b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6708,7 +6708,12 @@ with pkgs; shards = callPackage ../development/tools/build-managers/shards { }; - shellcheck = self.haskellPackages.ShellCheck; + shellcheck = haskell.lib.overrideCabal haskellPackages.ShellCheck (drv: { + isLibrary = false; + enableSharedExecutables = false; + doHaddock = false; + postFixup = "rm -rf $out/lib $out/nix-support $out/share/doc"; + }); shncpd = callPackage ../tools/networking/shncpd { };