mesa: revert to 22.0 on darwin

This commit is contained in:
Vladimír Čunát 2022-06-11 11:03:55 +02:00
parent 7317f1e3e3
commit eb3469e526
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -34,7 +34,8 @@ with lib;
let let
# Release calendar: https://www.mesa3d.org/release-calendar.html # Release calendar: https://www.mesa3d.org/release-calendar.html
# Release frequency: https://www.mesa3d.org/releasing.html#schedule # Release frequency: https://www.mesa3d.org/releasing.html#schedule
version = "22.1.1"; # 22.1 on darwin won't build: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6519
version = if stdenv.isDarwin then "22.0.4" else "22.1.1";
branch = versions.major version; branch = versions.major version;
self = stdenv.mkDerivation { self = stdenv.mkDerivation {
@ -48,7 +49,10 @@ self = stdenv.mkDerivation {
"ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz" "ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz"
"ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
]; ];
sha256 = "1w8fpki67238l4yc92hsnsh4402py9zspirbmirxp577zxjhi526"; sha256 = {
"22.1.1" = "1w8fpki67238l4yc92hsnsh4402py9zspirbmirxp577zxjhi526";
"22.0.4" = "1m0y8wgy48hmcidsr7sbk5hcw3v0qr8359fd2x34fvl2z9c1z5y7";
}.${version};
}; };
# TODO: # TODO: