mix-release: add comments
parent
e13301fd5c
commit
2e3e591211
|
@ -82,6 +82,9 @@ stdenv.mkDerivation (overridable // {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Stripping of the binary is intentional
|
||||||
|
# even though it does not affect beam files
|
||||||
|
# it is necessary for NIFs binaries
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
if [ -e "$out/bin/${pname}.bat" ]; then # absent in special cases, i.e. elixir-ls
|
if [ -e "$out/bin/${pname}.bat" ]; then # absent in special cases, i.e. elixir-ls
|
||||||
rm "$out/bin/${pname}.bat" # windows file
|
rm "$out/bin/${pname}.bat" # windows file
|
||||||
|
@ -97,6 +100,8 @@ stdenv.mkDerivation (overridable // {
|
||||||
# closure size
|
# closure size
|
||||||
if [ -e $out/erts-* ]; then
|
if [ -e $out/erts-* ]; then
|
||||||
echo "ERTS found in $out - removing references to erlang to reduce closure size"
|
echo "ERTS found in $out - removing references to erlang to reduce closure size"
|
||||||
|
# there is a link in $out/erts-*/bin/start always
|
||||||
|
# sometimes there are links in dependencies like bcrypt compiled binaries
|
||||||
for file in $(rg "${erlang}/lib/erlang" "$out" --text --files-with-matches); do
|
for file in $(rg "${erlang}/lib/erlang" "$out" --text --files-with-matches); do
|
||||||
substituteInPlace "$file" --replace "${erlang}/lib/erlang" "$out"
|
substituteInPlace "$file" --replace "${erlang}/lib/erlang" "$out"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue