2013-08-07 15:06:11 +01:00
|
|
|
{ stdenv, fetchurl, erlang }:
|
|
|
|
|
2014-02-08 17:54:34 +00:00
|
|
|
|
|
|
|
let
|
2014-08-12 12:47:59 +01:00
|
|
|
version = "2.5.1";
|
2014-02-08 17:54:34 +00:00
|
|
|
in
|
2013-08-07 15:06:11 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-02-08 17:54:34 +00:00
|
|
|
name = "rebar-${version}";
|
2013-08-07 15:06:11 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-08 17:54:34 +00:00
|
|
|
url = "https://github.com/rebar/rebar/archive/${version}.tar.gz";
|
2014-08-12 12:47:59 +01:00
|
|
|
sha256 = "1y9b0smw0g5q197xf4iklzmcf8ad6w52p6mwzpf7b0ib1nd89jw6";
|
2013-08-07 15:06:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ erlang ];
|
|
|
|
|
|
|
|
buildPhase = "escript bootstrap";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp rebar $out/bin/rebar
|
|
|
|
'';
|
2013-08-07 15:09:08 +01:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/rebar/rebar;
|
2013-09-26 20:37:49 +01:00
|
|
|
description = "Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases";
|
2013-08-07 15:09:08 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
rebar is a self-contained Erlang script, so it's easy to
|
|
|
|
distribute or even embed directly in a project. Where possible,
|
|
|
|
rebar uses standard Erlang/OTP conventions for project
|
|
|
|
structures, thus minimizing the amount of build configuration
|
|
|
|
work. rebar also provides dependency management, enabling
|
|
|
|
application writers to easily re-use common libraries from a
|
|
|
|
variety of locations (git, hg, etc).
|
|
|
|
'';
|
|
|
|
|
2014-09-03 20:14:57 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-08-09 15:31:13 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.the-kenny ];
|
2018-08-06 11:22:59 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2013-08-07 15:09:08 +01:00
|
|
|
};
|
2013-08-07 15:06:11 +01:00
|
|
|
}
|