Skip to content

Commit

Permalink
mesa: Don't error: attribute 'driversdev' missing
Browse files Browse the repository at this point in the history
`legacyPackages.aarch64-darwin.pkgsCross.aarch64-multiplatform.mesa.nativeBuildInputs`

Missing attribute errors can't be caught
  • Loading branch information
Artturin committed Sep 27, 2024
1 parent 3876b1b commit cc705b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/mesa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit cc705b7

Please sign in to comment.