mesa: Don't error: attribute 'driversdev' missing

`legacyPackages.aarch64-darwin.pkgsCross.aarch64-multiplatform.mesa.nativeBuildInputs`

Missing attribute errors can't be caught
This commit is contained in:
Artturin 2024-09-27 23:14:23 +03:00
parent 3876b1b05b
commit cc705b79cb

View File

@ -289,11 +289,12 @@ in stdenv.mkDerivation {
rustPlatform.bindgenHook
wayland-scanner
] ++ lib.optionals needNativeCLC [
buildPackages.mesa.driversdev
# `or null` to not break eval with `attribute missing` on darwin to linux cross
(buildPackages.mesa.driversdev or null)
];
disallowedRequisites = lib.optionals needNativeCLC [
buildPackages.mesa.driversdev
(buildPackages.mesa.driversdev or null)
];
propagatedBuildInputs = [ libdrm ];