2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, erlang }:
|
2013-08-07 15:06:11 +01:00
|
|
|
|
2014-02-08 17:54:34 +00:00
|
|
|
|
|
|
|
let
|
2020-01-17 10:22:22 +00:00
|
|
|
version = "2.6.4";
|
2014-02-08 17:54:34 +00:00
|
|
|
in
|
2013-08-07 15:06:11 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "rebar";
|
|
|
|
inherit 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";
|
2020-01-17 10:22:22 +00:00
|
|
|
sha256 = "01xxq1f1vrwca00pky2van26hi2hhr05ghfhy71v5cifzax4cwjp";
|
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 = {
|
2020-04-01 02:11:51 +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).
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.asl20;
|
2021-01-23 20:25:40 +00:00
|
|
|
maintainers = lib.teams.beam.members;
|
2013-08-07 15:09:08 +01:00
|
|
|
};
|
2013-08-07 15:06:11 +01:00
|
|
|
}
|