diff options
author | Moritz Ulrich <moritz@tarn-vedra.de> | 2013-08-07 16:06:11 +0200 |
---|---|---|
committer | Moritz Ulrich <moritz@tarn-vedra.de> | 2013-08-09 16:29:01 +0200 |
commit | ceb96b73124ddd996066525c5133b4ceb60e4fa0 (patch) | |
tree | 9dbbb5e368dfdec4aad477f333a8f6f417296e3d /pkgs/development/interpreters/elixir | |
parent | e32b26c222f05b1d28f38ba3057973a5454e2df2 (diff) |
Package elixir and rebar.
Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Diffstat (limited to 'pkgs/development/interpreters/elixir')
-rw-r--r-- | pkgs/development/interpreters/elixir/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/elixir/default.nix b/pkgs/development/interpreters/elixir/default.nix new file mode 100644 index 0000000000000..a368e99ff384c --- /dev/null +++ b/pkgs/development/interpreters/elixir/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, erlang, rebar }: + +stdenv.mkDerivation { + name = "elixir-0.10.1"; + + src = fetchurl { + url = "https://github.com/elixir-lang/elixir/archive/v0.10.1.tar.gz"; + sha256 = "0gfr2bz3mw7ag9z2wb2g22n2vlyrp8dwy78fj9zi52kzl5w3vc3w"; + }; + + buildInputs = [ erlang rebar ]; + + preBuild = '' + substituteInPlace rebar \ + --replace "/usr/bin/env escript" ${erlang}/bin/escript + substituteInPlace Makefile \ + --replace '$(shell echo `pwd`/rebar)' ${rebar}/bin/rebar \ + --replace "/usr/local" $out + ''; +} |