2013-06-21 08:57:07 +01:00
|
|
|
{ stdenv, fetchurl, python, asciidoc, re2c }:
|
2013-05-11 10:39:52 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-05-11 10:50:29 +01:00
|
|
|
name = "ninja-${version}";
|
2015-07-20 19:49:03 +01:00
|
|
|
version = "1.6.0";
|
2013-05-11 10:39:52 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-06-21 08:57:07 +01:00
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "https://github.com/martine/ninja/archive/v${version}.tar.gz";
|
2015-07-20 19:49:03 +01:00
|
|
|
sha256 = "1ryd1686bd31gfdjxnqm6k1ybnjmjz8v97px7lmdkr4g0vxqhgml";
|
2013-05-11 10:39:52 +01:00
|
|
|
};
|
|
|
|
|
2013-06-21 08:57:07 +01:00
|
|
|
buildInputs = [ python asciidoc re2c ];
|
2013-05-11 10:39:52 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python bootstrap.py
|
|
|
|
asciidoc doc/manual.asciidoc
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ninja $out/bin/
|
|
|
|
|
|
|
|
mkdir -p $out/share/doc/ninja
|
|
|
|
cp doc/manual.asciidoc $out/share/doc/ninja/
|
|
|
|
cp doc/manual.html $out/share/doc/ninja/
|
|
|
|
'';
|
|
|
|
|
2013-05-20 18:33:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-05-11 10:49:32 +01:00
|
|
|
description = "Small build system with a focus on speed";
|
|
|
|
longDescription = ''
|
|
|
|
Ninja is a small build system with a focus on speed. It differs from
|
|
|
|
other build systems in two major respects: it is designed to have its
|
|
|
|
input files generated by a higher-level build system, and it is designed
|
|
|
|
to run builds as fast as possible.
|
|
|
|
'';
|
|
|
|
homepage = http://martine.github.io/ninja/;
|
2013-05-20 18:33:18 +01:00
|
|
|
license = licenses.asl20;
|
2014-04-12 17:37:45 +01:00
|
|
|
platforms = platforms.unix;
|
2014-08-20 07:13:33 +01:00
|
|
|
maintainers = [ maintainers.thoughtpolice maintainers.bjornfor ];
|
2013-05-11 10:49:32 +01:00
|
|
|
};
|
2013-05-11 10:39:52 +01:00
|
|
|
}
|