reduce nix output path size by 60MB

This commit is contained in:
778a69cd 2023-12-02 04:26:04 +01:00
parent bedada2efc
commit 9a10666aa8

View file

@ -118,6 +118,16 @@ mixRelease rec {
mix phx.digest --no-deps-check
'';
# Just a hack to reduce path size by 60MB
postInstall =
let
inherit (mixNixDeps) ex_cldr;
in
''
rm -r $out/lib/ex_cldr-${ex_cldr.version}/priv/cldr/locales
ln -s ${ex_cldr.src}/priv/cldr/locales $out/lib/ex_cldr-${ex_cldr.version}/priv/cldr/locales
'';
passthru.elixirPackage = beamPackages.elixir;
meta = with lib; {