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:
Bjørn Forsman 2013-05-11 11:50:29 +02:00
parent beb2a7a579
commit 7f1509aba6

View File

@ -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";
}; };