llvmPackages: generalize "3.9.0" string occurrences

Discussed:
https://github.com/NixOS/nixpkgs/commit/15af9082eb#commitcomment-18903919
This commit is contained in:
Vladimír Čunát 2016-09-11 10:11:44 +02:00
parent 5c38882f38
commit a49cb9dcbe
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ let
# Clang expects to find sanitizer libraries in its own prefix
postInstall = ''
ln -sv ${llvm}/lib/LLVMgold.so $out/lib
ln -sv ${llvm}/lib/clang/3.9.0/lib $out/lib/clang/3.9.0/
ln -sv ${llvm}/lib/clang/${version}/lib $out/lib/clang/${version}/
ln -sv $out/bin/clang $out/bin/cpp
'';

View File

@ -6,7 +6,7 @@ let
fetch = fetch_v version;
fetch_v = ver: name: sha256: fetchurl {
url = "http://llvm.org/releases/3.9.0/${name}-${ver}.src.tar.xz";
url = "http://llvm.org/releases/${version}/${name}-${ver}.src.tar.xz";
inherit sha256;
};