Reduce closure size by removing private lib from out dir

This commit is contained in:
Bryan Bennett 2024-08-16 07:39:00 -04:00
parent 2b79807fce
commit 7ad53e8859
No known key found for this signature in database
GPG key ID: EE149E4215408DE9

View file

@ -45,6 +45,7 @@ buildDunePackage {
substituteInPlace direnvrc --replace-fail "@flake_env@" "$out/bin/flake_env" substituteInPlace direnvrc --replace-fail "@flake_env@" "$out/bin/flake_env"
''; '';
postInstall = '' postInstall = ''
rm -r $out/lib
${bintools}/bin/strip --strip-unneeded $out/bin/flake_env ${bintools}/bin/strip --strip-unneeded $out/bin/flake_env
${upx}/bin/upx $out/bin/flake_env ${upx}/bin/upx $out/bin/flake_env
install -m444 -D direnvrc $out/share/flake_env/direnvrc install -m444 -D direnvrc $out/share/flake_env/direnvrc