Skip to content

Commit

Permalink
Reduce closure size of Nix derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
phijor committed Apr 7, 2024
1 parent 54b417d commit 212e999
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 212e999

Please sign in to comment.