elixir: Update to 0.12.3.
This commit is contained in:
parent
93f45ad2e5
commit
c983d23e33
@ -1,29 +1,30 @@
|
|||||||
{ stdenv, fetchurl, erlang, rebar, makeWrapper, coreutils }:
|
{ stdenv, fetchurl, erlang, rebar, makeWrapper, coreutils }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "0.12.0";
|
version = "0.12.3";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "elixir-${version}";
|
name = "elixir-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz";
|
url = "https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz";
|
||||||
sha256 = "0cir2y36zljwphiqyz8xmq7qq0f094jmfy3qwk3wdm05c05nqnc8";
|
sha256 = "1im00cki38ldsig93djlsap8zbgwv74kpgw7xg9l6ik2cbpk0131";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ erlang rebar makeWrapper ];
|
buildInputs = [ erlang rebar makeWrapper ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace rebar \
|
# The build process uses ./rebar. Link it to the nixpkgs rebar
|
||||||
--replace "/usr/bin/env escript" ${erlang}/bin/escript
|
rm -v rebar
|
||||||
|
ln -s ${rebar}/bin/rebar rebar
|
||||||
|
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace '$(shell echo `pwd`/rebar)' ${rebar}/bin/rebar \
|
|
||||||
--replace "/usr/local" $out
|
--replace "/usr/local" $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
# Elixirs binaries are shell scripts which run erl. This adds some
|
# Elixir binaries are shell scripts which run erl. Add some stuff
|
||||||
# stuff to PATH so the scripts run without problems.
|
# to PATH so the scripts can run without problems.
|
||||||
|
|
||||||
for f in $out/bin/*
|
for f in $out/bin/*
|
||||||
do
|
do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user