3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/rebar/default.nix

19 lines
388 B
Nix
Raw Normal View History

{ stdenv, fetchurl, erlang }:
stdenv.mkDerivation {
name = "rebar-2.1.0-pre";
src = fetchurl {
url = "https://github.com/basho/rebar/archive/2.1.0-pre.tar.gz";
sha256 = "0dsbk9ssvk1hx9275900dg4bz79kpwcid4gsz09ziiwzv0jjbrjn";
};
buildInputs = [ erlang ];
buildPhase = "escript bootstrap";
installPhase = ''
mkdir -p $out/bin
cp rebar $out/bin/rebar
'';
}