|
|
|
@ -6,16 +6,18 @@ |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
let |
|
|
|
|
release_version = "11.0.0"; |
|
|
|
|
version = release_version; # differentiating these (variables) is important for RCs |
|
|
|
|
release_version = "11.0.1"; |
|
|
|
|
candidate = ""; # empty or "rcN" |
|
|
|
|
dash-candidate = stdenv.lib.optionalString (candidate != "") "-${candidate}"; |
|
|
|
|
version = "${release_version}${dash-candidate}"; # differentiating these (variables) is important for RCs |
|
|
|
|
targetConfig = stdenv.targetPlatform.config; |
|
|
|
|
|
|
|
|
|
fetch = name: sha256: fetchurl { |
|
|
|
|
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${release_version}/${name}-${version}.src.tar.xz"; |
|
|
|
|
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${name}-${release_version}${candidate}.src.tar.xz"; |
|
|
|
|
inherit sha256; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
clang-tools-extra_src = fetch "clang-tools-extra" "02bcwwn54661madhq4nxc069s7p7pj5gpqi8ww50w3anbpviilzy"; |
|
|
|
|
clang-tools-extra_src = fetch "clang-tools-extra" "1j8n6n4l54k2lrdxh266y1fl4z8vy5dc76wsf0csk5n3ikfi38ic"; |
|
|
|
|
|
|
|
|
|
tools = stdenv.lib.makeExtensible (tools: let |
|
|
|
|
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; }); |
|
|
|
|