ninja: use version attribute
...to avoid the risk of downloading a different version than the package name suggests (i.e. on the next version bump).
This commit is contained in:
parent
beb2a7a579
commit
7f1509aba6
@ -1,10 +1,11 @@
|
|||||||
{ stdenv, fetchurl, unzip, python, asciidoc, re2c }:
|
{ stdenv, fetchurl, unzip, python, asciidoc, re2c }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ninja-1.2.0";
|
name = "ninja-${version}";
|
||||||
|
version = "1.2.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/martine/ninja/archive/v1.2.0.zip";
|
url = "https://github.com/martine/ninja/archive/v${version}.zip";
|
||||||
sha256 = "15ynh806ah37bqb57hcs3mj2g82900sncp6n3bssfggb4azgjlh3";
|
sha256 = "15ynh806ah37bqb57hcs3mj2g82900sncp6n3bssfggb4azgjlh3";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user