nixpkgs/pkgs/development/tools/build-managers/rebar/default.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, erlang }:
2014-02-08 18:54:34 +01:00
let
2014-05-19 15:36:59 +02:00
version = "2.3.0";
2014-02-08 18:54:34 +01:00
in
stdenv.mkDerivation {
2014-02-08 18:54:34 +01:00
name = "rebar-${version}";
src = fetchurl {
2014-02-08 18:54:34 +01:00
url = "https://github.com/rebar/rebar/archive/${version}.tar.gz";
2014-05-19 15:36:59 +02:00
sha256 = "0g23ib96lalpmynx39fprlw08ivgyb7i6c6a8jvgqwr9jmd0nj06";
};
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).
'';
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.the-kenny ];
};
}