summary refs log tree commit diff
path: root/pkgs/development/beam-modules
diff options
context:
space:
mode:
authorhappysalada <raphael@megzari.com>2021-10-03 00:25:39 +0900
committerRaphael Megzari <raphael@megzari.com>2021-10-03 20:16:34 +0900
commit1b9dbf407cf8ab3502db9d884288de93d53351dc (patch)
tree8ebdb4bc42fdcd91b795c594f9038db26ac02ab8 /pkgs/development/beam-modules
parent5ea38738d9021cf0e788224397e8df4cb23980d9 (diff)
downloadnixpkgs-1b9dbf407cf8ab3502db9d884288de93d53351dc.tar
nixpkgs-1b9dbf407cf8ab3502db9d884288de93d53351dc.tar.gz
nixpkgs-1b9dbf407cf8ab3502db9d884288de93d53351dc.tar.bz2
nixpkgs-1b9dbf407cf8ab3502db9d884288de93d53351dc.tar.lz
nixpkgs-1b9dbf407cf8ab3502db9d884288de93d53351dc.tar.xz
nixpkgs-1b9dbf407cf8ab3502db9d884288de93d53351dc.tar.zst
nixpkgs-1b9dbf407cf8ab3502db9d884288de93d53351dc.zip
beam: mix-release: do not use substituteInPlace on binaries
Diffstat (limited to 'pkgs/development/beam-modules')
-rw-r--r--pkgs/development/beam-modules/mix-release.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/beam-modules/mix-release.nix b/pkgs/development/beam-modules/mix-release.nix
index c65e497f4d7..554e2e2daed 100644
--- a/pkgs/development/beam-modules/mix-release.nix
+++ b/pkgs/development/beam-modules/mix-release.nix
@@ -104,8 +104,12 @@ stdenv.mkDerivation (overridable // {
     if [ -e $out/erts-* ]; then
       echo "ERTS found in $out - removing references to erlang to reduce closure size"
       # there is a link in $out/erts-*/bin/start always
+      # TODO:
       # sometimes there are links in dependencies like bcrypt compiled binaries
-      for file in $(rg "${erlang}/lib/erlang" "$out" --text --files-with-matches); do
+      # at the moment those are not removed since substituteInPlace will
+      # error on binaries
+      for file in $(rg "${erlang}/lib/erlang" "$out" --files-with-matches); do
+        echo "removing reference to erlang in $file"
         substituteInPlace "$file" --replace "${erlang}/lib/erlang" "$out"
       done
     fi