2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, erlang }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "rebar";
|
2021-07-18 21:22:44 +00:00
|
|
|
version = "2.6.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rebar";
|
|
|
|
repo = "rebar";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-okvG7X2uHtZ1p+HUoFOmslrWvYjk0QWBAvAMAW2E40c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ erlang ];
|
|
|
|
|
|
|
|
buildPhase = "escript bootstrap";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp rebar $out/bin/rebar
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/rebar/rebar";
|
|
|
|
description = "Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases";
|
|
|
|
|
|
|
|
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-12-06 16:07:01 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.asl20;
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = lib.teams.beam.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|