summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2017-02-22 23:21:27 +0100
committerJörg Thalheim <joerg@higgsboson.tk>2017-02-22 23:37:52 +0000
commitdf4c0aeff864f8d3308afc1f4386895fcd3e990d (patch)
tree9a2fef38f85e71829c714da4cd593a17062b0e3f
parent354243c784d753a1325598bfc5a7bb061040d55e (diff)
downloadnixpkgs-df4c0aeff864f8d3308afc1f4386895fcd3e990d.tar
nixpkgs-df4c0aeff864f8d3308afc1f4386895fcd3e990d.tar.gz
nixpkgs-df4c0aeff864f8d3308afc1f4386895fcd3e990d.tar.bz2
nixpkgs-df4c0aeff864f8d3308afc1f4386895fcd3e990d.tar.lz
nixpkgs-df4c0aeff864f8d3308afc1f4386895fcd3e990d.tar.xz
nixpkgs-df4c0aeff864f8d3308afc1f4386895fcd3e990d.tar.zst
nixpkgs-df4c0aeff864f8d3308afc1f4386895fcd3e990d.zip
shellcheck: reduce closure size
from 1.5GB to 20mb
-rw-r--r--pkgs/top-level/all-packages.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 35fa5796807..d7a4cce9468 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 { };