Skip to content

Commit

Permalink
Merge pull request #146 from phijor/reduce-closure-size
Browse files Browse the repository at this point in the history
Reduce closure size of Nix derivation
  • Loading branch information
isovector authored Apr 8, 2024
2 parents 54b417d + 212e999 commit 9d3347e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
packageOverrides = final.lib.composeExtensions
prev.haskell.packageOverrides
(hfinal: hprev: {
${name} = hfinal.callCabal2nix name ./. { };
# Put binaries into separate output "bin" to reduce closure size.
# https://nixos.org/manual/nixpkgs/stable/#haskell-packaging-helpers
${name} = final.haskell.lib.enableSeparateBinOutput
(hfinal.callCabal2nix name ./. { });
});
};

Expand Down

0 comments on commit 9d3347e

Please sign in to comment.