2013-06-21 09:57:07 +02:00
|
|
|
{ stdenv, fetchurl, python, asciidoc, re2c }:
|
2013-05-11 11:39:52 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-05-11 11:50:29 +02:00
|
|
|
name = "ninja-${version}";
|
2013-09-26 08:22:05 +02:00
|
|
|
version = "1.4.0";
|
2013-05-11 11:39:52 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-06-21 09:57:07 +02:00
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "https://github.com/martine/ninja/archive/v${version}.tar.gz";
|
2013-09-26 08:22:05 +02:00
|
|
|
sha256 = "05y3whnp0fvfv1wsp862x0w1vrn3yjzzg8ypvbpcv6y6qlrsn73h";
|
2013-05-11 11:39:52 +02:00
|
|
|
};
|
|
|
|
|
2013-06-21 09:57:07 +02:00
|
|
|
buildInputs = [ python asciidoc re2c ];
|
2013-05-11 11:39:52 +02: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 19:33:18 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-05-11 11:49:32 +02: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 19:33:18 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2014-01-02 17:53:57 +01:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-05-11 11:49:32 +02:00
|
|
|
};
|
2013-05-11 11:39:52 +02:00
|
|
|
}
|