1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

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
This commit is contained in:
Ryan Artecona 2015-09-05 23:33:01 -04:00
parent fc29fe1d63
commit 4183604207

View file

@ -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; {