f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ stdenv, fetchurl, erlang }:
|
|
|
|
|
|
let
|
|
version = "2.5.1";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "rebar-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/rebar/rebar/archive/${version}.tar.gz";
|
|
sha256 = "1y9b0smw0g5q197xf4iklzmcf8ad6w52p6mwzpf7b0ib1nd89jw6";
|
|
};
|
|
|
|
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;
|
|
maintainers = [ stdenv.lib.maintainers.the-kenny ];
|
|
};
|
|
}
|