1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-16 01:47:08 +03:00

Only build static executable in top-level niv attribute

This reduces the closure size by about 2G.
This commit is contained in:
Nicolas Mattia 2020-01-11 20:01:17 +01:00
parent d20eed4ce6
commit 461905a70c

View File

@ -46,6 +46,7 @@ with rec
haskellPackages = pkgs.haskellPackages.override {
overrides = _: haskellPackages: {
niv =
pkgs.haskell.lib.justStaticExecutables (
pkgs.haskell.lib.failOnAllWarnings (
pkgs.haskell.lib.disableExecutableProfiling (
pkgs.haskell.lib.disableLibraryProfiling (
@ -54,6 +55,7 @@ with rec
)
)
)
)
);
};
};