Skip to content
Permalink
Browse files

Merge pull request #181 from nmattia/nm-reduce-closure-size

Only build static executable in top-level niv attribute
  • Loading branch information
nmattia committed Jan 11, 2020
2 parents 2b21ab6 + 461905a commit c8f74f44b5f5df2c8f20a1834460d012e74d78f9
Showing with 7 additions and 5 deletions.
  1. +7 −5 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 {}
)
)
)
)

0 comments on commit c8f74f4

Please sign in to comment.
You can’t perform that action at this time.