mirror of
https://github.com/nmattia/niv.git
synced 2024-09-05 20:15:26 +03:00
Only build static executable in top-level niv attribute
This reduces the closure size by about 2G.
This commit is contained in:
parent
d20eed4ce6
commit
461905a70c
12
default.nix
12
default.nix
@ -46,11 +46,13 @@ with rec
|
||||
haskellPackages = pkgs.haskellPackages.override {
|
||||
overrides = _: haskellPackages: {
|
||||
niv =
|
||||
pkgs.haskell.lib.failOnAllWarnings (
|
||||
pkgs.haskell.lib.disableExecutableProfiling (
|
||||
pkgs.haskell.lib.disableLibraryProfiling (
|
||||
pkgs.haskell.lib.generateOptparseApplicativeCompletion "niv" (
|
||||
haskellPackages.callCabal2nix "niv" niv-source {}
|
||||
pkgs.haskell.lib.justStaticExecutables (
|
||||
pkgs.haskell.lib.failOnAllWarnings (
|
||||
pkgs.haskell.lib.disableExecutableProfiling (
|
||||
pkgs.haskell.lib.disableLibraryProfiling (
|
||||
pkgs.haskell.lib.generateOptparseApplicativeCompletion "niv" (
|
||||
haskellPackages.callCabal2nix "niv" niv-source {}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user