From cc705b79cb597fac42b2fb304a8543ae1b847efc Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 27 Sep 2024 23:14:23 +0300 Subject: [PATCH] mesa: Don't `error: attribute 'driversdev' missing` `legacyPackages.aarch64-darwin.pkgsCross.aarch64-multiplatform.mesa.nativeBuildInputs` Missing attribute errors can't be caught --- pkgs/development/libraries/mesa/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index 80eacadd879d..f5d44ff4623a 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -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 ];