ninja: 1.7.2 -> 1.8.2

authored by

Roberto Di Remigio and committed by
Orivej Desh
9792c039 d62531d0

+15 -16
+15 -16
pkgs/development/tools/build-managers/ninja/default.nix
··· 1 - { stdenv, fetchurl, python, asciidoc, re2c }: 1 + { stdenv, fetchFromGitHub, python, asciidoc, re2c }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "ninja-${version}"; 5 - version = "1.7.2"; 5 + version = "1.8.2"; 6 6 7 - src = fetchurl { 8 - name = "${name}.tar.gz"; 9 - url = "https://github.com/ninja-build/ninja/archive/v${version}.tar.gz"; 10 - sha256 = "1n8n3g26ppwh7zwrc37n3alkbpbj0wki34ih53s3rkhs8ajs1p9f"; 7 + src = fetchFromGitHub { 8 + owner = "ninja-build"; 9 + repo = "ninja"; 10 + rev = "v${version}"; 11 + sha256 = "16scq9hcq6c5ap6sy8j4qi75qps1zvrf3p79j1vbrvnqzp928i5f"; 11 12 }; 12 13 13 - buildInputs = [ python asciidoc re2c ]; 14 + nativeBuildInputs = [ python asciidoc re2c ]; 14 15 15 16 buildPhase = '' 16 - python bootstrap.py 17 + python configure.py --bootstrap 17 18 asciidoc doc/manual.asciidoc 18 19 ''; 19 20 20 21 installPhase = '' 21 - mkdir -p $out/bin 22 - cp ninja $out/bin/ 23 - 24 - mkdir -p $out/share/doc/ninja 25 - cp doc/manual.asciidoc $out/share/doc/ninja/ 26 - cp doc/manual.html $out/share/doc/ninja/ 22 + install -Dm555 -t $out/bin ninja 23 + install -Dm444 -t $out/share/doc/ninja doc/manual.asciidoc doc/manual.html 24 + install -Dm444 misc/bash-completion $out/share/bash-completion/completions/ninja 25 + install -Dm444 misc/zsh-completion $out/share/zsh/site-functions/_ninja 27 26 ''; 28 27 29 28 setupHook = ./setup-hook.sh; ··· 36 35 input files generated by a higher-level build system, and it is designed 37 36 to run builds as fast as possible. 38 37 ''; 39 - homepage = http://martine.github.io/ninja/; 38 + homepage = https://ninja-build.org/; 40 39 license = licenses.asl20; 41 40 platforms = platforms.unix; 42 - maintainers = [ maintainers.thoughtpolice maintainers.bjornfor ]; 41 + maintainers = with maintainers; [ thoughtpolice bjornfor orivej ]; 43 42 }; 44 43 }