mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
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.mkDerivation rec {
|
||||
name = "ninja-1.2.0";
|
||||
name = "ninja-${version}";
|
||||
version = "1.2.0";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user