3
0
Fork 0
forked from mirrors/nixpkgs

ninja: 1.7.2 -> 1.8.2

This commit is contained in:
Roberto Di Remigio 2017-11-18 17:55:01 +01:00 committed by Orivej Desh
parent d62531d0d9
commit 9792c039ee

View file

@ -1,29 +1,28 @@
{ stdenv, fetchurl, python, asciidoc, re2c }: { stdenv, fetchFromGitHub, python, asciidoc, re2c }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ninja-${version}"; name = "ninja-${version}";
version = "1.7.2"; version = "1.8.2";
src = fetchurl { src = fetchFromGitHub {
name = "${name}.tar.gz"; owner = "ninja-build";
url = "https://github.com/ninja-build/ninja/archive/v${version}.tar.gz"; repo = "ninja";
sha256 = "1n8n3g26ppwh7zwrc37n3alkbpbj0wki34ih53s3rkhs8ajs1p9f"; rev = "v${version}";
sha256 = "16scq9hcq6c5ap6sy8j4qi75qps1zvrf3p79j1vbrvnqzp928i5f";
}; };
buildInputs = [ python asciidoc re2c ]; nativeBuildInputs = [ python asciidoc re2c ];
buildPhase = '' buildPhase = ''
python bootstrap.py python configure.py --bootstrap
asciidoc doc/manual.asciidoc asciidoc doc/manual.asciidoc
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/bin install -Dm555 -t $out/bin ninja
cp ninja $out/bin/ install -Dm444 -t $out/share/doc/ninja doc/manual.asciidoc doc/manual.html
install -Dm444 misc/bash-completion $out/share/bash-completion/completions/ninja
mkdir -p $out/share/doc/ninja install -Dm444 misc/zsh-completion $out/share/zsh/site-functions/_ninja
cp doc/manual.asciidoc $out/share/doc/ninja/
cp doc/manual.html $out/share/doc/ninja/
''; '';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;
@ -36,9 +35,9 @@ stdenv.mkDerivation rec {
input files generated by a higher-level build system, and it is designed input files generated by a higher-level build system, and it is designed
to run builds as fast as possible. to run builds as fast as possible.
''; '';
homepage = http://martine.github.io/ninja/; homepage = https://ninja-build.org/;
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = [ maintainers.thoughtpolice maintainers.bjornfor ]; maintainers = with maintainers; [ thoughtpolice bjornfor orivej ];
}; };
} }