diff options
author | Ryan Artecona <ryanartecona@gmail.com> | 2015-09-05 23:33:01 -0400 |
---|---|---|
committer | Ryan Artecona <ryanartecona@gmail.com> | 2015-09-05 23:49:51 -0400 |
commit | 4183604207bce08b5136895704907d2dec42920a (patch) | |
tree | b5eb2a462bb894fb729e043cd459953fbe1610ce /pkgs/development/interpreters | |
parent | fc29fe1d6368e83dc5d1e43b1014f1b9960947c6 (diff) | |
download | nixlib-4183604207bce08b5136895704907d2dec42920a.tar nixlib-4183604207bce08b5136895704907d2dec42920a.tar.gz nixlib-4183604207bce08b5136895704907d2dec42920a.tar.bz2 nixlib-4183604207bce08b5136895704907d2dec42920a.tar.lz nixlib-4183604207bce08b5136895704907d2dec42920a.tar.xz nixlib-4183604207bce08b5136895704907d2dec42920a.tar.zst nixlib-4183604207bce08b5136895704907d2dec42920a.zip |
elixir: fix mix on darwin
Darwin disallows shebang scripts from using other scripts as their command--the command must be a binary. This commit changes the `mix` shebang script from calling `elixir` directly (another shebang script), instead using `env` as an intermediary. Fixes #9050
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/elixir/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/elixir/default.nix b/pkgs/development/interpreters/elixir/default.nix index c9a837744868..85a389c1cea4 100644 --- a/pkgs/development/interpreters/elixir/default.nix +++ b/pkgs/development/interpreters/elixir/default.nix @@ -20,8 +20,6 @@ stdenv.mkDerivation { substituteInPlace Makefile \ --replace "/usr/local" $out - substituteInPlace bin/mix \ - --replace "/usr/bin/env elixir" "$out/bin/elixir" ''; postFixup = '' @@ -35,6 +33,9 @@ stdenv.mkDerivation { --prefix PATH ":" "${erlang}/bin:${coreutils}/bin:${curl}/bin:${bash}/bin" \ --set CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt done + + substituteInPlace $out/bin/mix \ + --replace "/usr/bin/env elixir" "${coreutils}/bin/env $out/bin/elixir" ''; meta = with stdenv.lib; { |