Merge pull request #4298 from daogames/tb/elixir-mix-curl-fix

elixir: make curl available to mix
This commit is contained in:
Austin Seipp 2014-10-01 18:54:24 -05:00
commit 5f7d5c09f3
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, erlang, rebar, makeWrapper, coreutils }:
{ stdenv, fetchurl, erlang, rebar, makeWrapper, coreutils, curl, bash, cacert }:
let
version = "1.0.0";
@ -20,6 +20,8 @@ stdenv.mkDerivation {
substituteInPlace Makefile \
--replace "/usr/local" $out
substituteInPlace bin/mix \
--replace "/usr/bin/env elixir" "$out/bin/elixir"
'';
postFixup = ''
@ -29,7 +31,8 @@ stdenv.mkDerivation {
for f in $out/bin/*
do
wrapProgram $f \
--prefix PATH ":" "${erlang}/bin:${coreutils}/bin"
--prefix PATH ":" "${erlang}/bin:${coreutils}/bin:${curl}/bin:${bash}/bin" \
--set CURL_CA_BUNDLE "${cacert}/etc/ca-bundle.crt"
done
'';