nixpkgs/pkgs/development/tools/build-managers/rebar/default.nix
Jörg Thalheim 887295fd2d
treewide: remove the-kenny from maintainers
@the-kenny did a good job in the past and is set as maintainer in many package,
however since 2017-2018 he stopped contributing. To create less confusion
in pull requests when people try to request his feedback, I removed him as
maintainer from all packages.
2020-05-09 10:28:57 +01:00

42 lines
1.1 KiB
Nix

{ stdenv, fetchurl, erlang }:
let
version = "2.6.4";
in
stdenv.mkDerivation {
pname = "rebar";
inherit version;
src = fetchurl {
url = "https://github.com/rebar/rebar/archive/${version}.tar.gz";
sha256 = "01xxq1f1vrwca00pky2van26hi2hhr05ghfhy71v5cifzax4cwjp";
};
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.unix;
license = stdenv.lib.licenses.asl20;
};
}