Merge pull request #9671 from ryanartecona/fix/elixir-darwin

elixir: fix mix on darwin
This commit is contained in:
Arseniy Seroka 2015-09-06 22:48:08 +03:00
commit 978120f7c7

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