diff options
author | Austin Seipp <aseipp@pobox.com> | 2014-10-01 18:54:24 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2014-10-01 18:54:24 -0500 |
commit | 5f7d5c09f3e90b611e37a20832af7a7e0d451434 (patch) | |
tree | ae87bf528b236ec4621a29bd77c0f71b882e77f1 | |
parent | 6e9d62153f2050e88620a9b6964685dcc494f3f1 (diff) | |
parent | 4ef1099310484e15cf90ec7e74eaa45fec933cdf (diff) | |
download | nixpkgs-5f7d5c09f3e90b611e37a20832af7a7e0d451434.tar nixpkgs-5f7d5c09f3e90b611e37a20832af7a7e0d451434.tar.gz nixpkgs-5f7d5c09f3e90b611e37a20832af7a7e0d451434.tar.bz2 nixpkgs-5f7d5c09f3e90b611e37a20832af7a7e0d451434.tar.lz nixpkgs-5f7d5c09f3e90b611e37a20832af7a7e0d451434.tar.xz nixpkgs-5f7d5c09f3e90b611e37a20832af7a7e0d451434.tar.zst nixpkgs-5f7d5c09f3e90b611e37a20832af7a7e0d451434.zip |
Merge pull request #4298 from daogames/tb/elixir-mix-curl-fix
elixir: make curl available to mix
-rw-r--r-- | pkgs/development/interpreters/elixir/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/elixir/default.nix b/pkgs/development/interpreters/elixir/default.nix index 8f0b4a238b3..9a5d2417df7 100644 --- a/pkgs/development/interpreters/elixir/default.nix +++ b/pkgs/development/interpreters/elixir/default.nix @@ -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 ''; |