diff options
author | Gleb Peregud <gleber.p@gmail.com> | 2015-12-06 20:36:05 +0100 |
---|---|---|
committer | Gleb Peregud <gleber.p@gmail.com> | 2015-12-15 01:02:52 +0100 |
commit | bcc4ca029adfbb0e21803cfcf50c8ee8000c422d (patch) | |
tree | 62404eb4c4efa12de68cfbb5c9e908e94a91ce6b /pkgs/development/tools/build-managers/rebar3 | |
parent | bc8d08a511617587d93fdac4f04f9b6195b3ad69 (diff) | |
download | nixpkgs-bcc4ca029adfbb0e21803cfcf50c8ee8000c422d.tar nixpkgs-bcc4ca029adfbb0e21803cfcf50c8ee8000c422d.tar.gz nixpkgs-bcc4ca029adfbb0e21803cfcf50c8ee8000c422d.tar.bz2 nixpkgs-bcc4ca029adfbb0e21803cfcf50c8ee8000c422d.tar.lz nixpkgs-bcc4ca029adfbb0e21803cfcf50c8ee8000c422d.tar.xz nixpkgs-bcc4ca029adfbb0e21803cfcf50c8ee8000c422d.tar.zst nixpkgs-bcc4ca029adfbb0e21803cfcf50c8ee8000c422d.zip |
Add rebar3 package
Diffstat (limited to 'pkgs/development/tools/build-managers/rebar3')
-rw-r--r-- | pkgs/development/tools/build-managers/rebar3/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/rebar3/default.nix b/pkgs/development/tools/build-managers/rebar3/default.nix new file mode 100644 index 00000000000..2e75a12bbfc --- /dev/null +++ b/pkgs/development/tools/build-managers/rebar3/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchurl, erlang }: + + +let + version = "3.0.0-beta.4"; +in +stdenv.mkDerivation { + name = "rebar3-${version}"; + + src = fetchurl { + url = "https://github.com/rebar/rebar3/archive/${version}.tar.gz"; + sha256 = "0px66scjdia9aaa5z36qzxb848r56m0k98g0bxw065a2narsh4xy"; + }; + + buildInputs = [ erlang ]; + + buildPhase = '' + HOME=. escript bootstrap + ''; + installPhase = '' + mkdir -p $out/bin + cp rebar3 $out/bin/rebar3 + ''; + + meta = { + homepage = "https://github.com/rebar/rebar3"; + description = "rebar 3.0 is an 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 (hex.pm, git, hg, and so on). + ''; + + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.gleber ]; + }; +} |