Skip to content

Commit 9d3347e

Browse files
authored
Merge pull request #146 from phijor/reduce-closure-size
Reduce closure size of Nix derivation
2 parents 54b417d + 212e999 commit 9d3347e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flake.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
packageOverrides = final.lib.composeExtensions
2424
prev.haskell.packageOverrides
2525
(hfinal: hprev: {
26-
${name} = hfinal.callCabal2nix name ./. { };
26+
# Put binaries into separate output "bin" to reduce closure size.
27+
# https://nixos.org/manual/nixpkgs/stable/#haskell-packaging-helpers
28+
${name} = final.haskell.lib.enableSeparateBinOutput
29+
(hfinal.callCabal2nix name ./. { });
2730
});
2831
};
2932

0 commit comments

Comments
 (0)