2013-08-07 16:06:11 +02:00
|
|
|
{ stdenv, fetchurl, erlang }:
|
|
|
|
|
2014-02-08 18:54:34 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "2.2.0";
|
|
|
|
in
|
2013-08-07 16:06:11 +02:00
|
|
|
stdenv.mkDerivation {
|
2014-02-08 18:54:34 +01:00
|
|
|
name = "rebar-${version}";
|
2013-08-07 16:06:11 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-08 18:54:34 +01:00
|
|
|
url = "https://github.com/rebar/rebar/archive/${version}.tar.gz";
|
|
|
|
sha256 = "0wprgzin09286v583jmlc385jqpi2lcpdql9srm4c7g39122dg43";
|
2013-08-07 16:06:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ erlang ];
|
|
|
|
|
|
|
|
buildPhase = "escript bootstrap";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp rebar $out/bin/rebar
|
|
|
|
'';
|
2013-08-07 16:09:08 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/rebar/rebar";
|
2013-09-26 21:37:49 +02:00
|
|
|
description = "Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases";
|
2013-08-07 16:09:08 +02: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).
|
|
|
|
'';
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-08-09 16:31:13 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.the-kenny ];
|
2013-08-07 16:09:08 +02:00
|
|
|
};
|
2013-08-07 16:06:11 +02:00
|
|
|
}
|