Merge pull request #163996 from primeos/llvmPackages_14
llvmPackages_14: 14.0.0-rc2 -> 14.0.0-rc4
This commit is contained in:
commit
1203e7fc41
3 changed files with 11 additions and 4 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
let
|
||||
release_version = "14.0.0";
|
||||
candidate = "rc2"; # empty or "rcN"
|
||||
candidate = "rc4"; # empty or "rcN"
|
||||
dash-candidate = lib.optionalString (candidate != "") "-${candidate}";
|
||||
rev = ""; # When using a Git commit
|
||||
rev-version = ""; # When using a Git commit
|
||||
|
@ -30,7 +30,7 @@ let
|
|||
owner = "llvm";
|
||||
repo = "llvm-project";
|
||||
rev = if rev != "" then rev else "llvmorg-${version}";
|
||||
sha256 = "sha256-5wJEaWvwJohtjqlIsBkqQ5rE6rcWw07MaQnN1RxPb5w=";
|
||||
sha256 = "0xm3hscg6xv48rjdi7sg9ky960af1qyg5k3jyavnaqimlaj9wxgp";
|
||||
};
|
||||
|
||||
llvm_meta = {
|
||||
|
|
|
@ -209,6 +209,9 @@ in stdenv.mkDerivation (rec {
|
|||
|
||||
checkTarget = "check-all";
|
||||
|
||||
# For the update script:
|
||||
passthru.monorepoSrc = monorepoSrc;
|
||||
|
||||
requiredSystemFeatures = [ "big-parallel" ];
|
||||
meta = llvm_meta // {
|
||||
homepage = "https://llvm.org/";
|
||||
|
|
|
@ -20,7 +20,11 @@ sed -Ei \
|
|||
|
||||
readonly ATTRSET="llvmPackages_$VERSION_MAJOR"
|
||||
|
||||
if [ "$VERSION_MAJOR" -ge "13" ]; then
|
||||
if [ "$VERSION_MAJOR" -ge "14" ]; then
|
||||
readonly SOURCES=(
|
||||
"llvm.monorepoSrc"
|
||||
)
|
||||
elif [ "$VERSION_MAJOR" -eq "13" ]; then
|
||||
readonly SOURCES=(
|
||||
"llvm.src"
|
||||
)
|
||||
|
@ -43,7 +47,7 @@ fi
|
|||
for SOURCE in "${SOURCES[@]}"; do
|
||||
echo "Updating the hash of $SOURCE:"
|
||||
declare ATTR="$ATTRSET.$SOURCE"
|
||||
declare OLD_HASH="$(nix eval -f . $ATTR.outputHash)"
|
||||
declare OLD_HASH="$(nix --extra-experimental-features nix-command eval -f . $ATTR.outputHash)"
|
||||
declare NEW_HASH="\"$(nix-prefetch-url -A $ATTR)\""
|
||||
find "$DIR" -type f -exec sed -i "s/$OLD_HASH/$NEW_HASH/" {} +
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue