diff options
author | K900 <me@0upti.me> | 2024-02-03 12:32:38 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2024-02-03 12:32:38 +0300 |
commit | f3fab8ac983e8f25293ef44abce52ceeb3e9c428 (patch) | |
tree | 17758c6ca3647c717e09d60811e1051eadc9733a /pkgs/development/libraries/mesa | |
parent | 959fc005557287c579a37e6aaf053c31173a2e5c (diff) |
mesa: don't fail if $dev/lib/pkgconfig/dri.pc doesn't exist
It may not, if we're not building DRI
Diffstat (limited to 'pkgs/development/libraries/mesa')
-rw-r--r-- | pkgs/development/libraries/mesa/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index f1a300ca957bf..ea8088d7d8a37 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -316,8 +316,9 @@ self = stdenv.mkDerivation { postFixup = lib.optionalString stdenv.isLinux '' # set the default search path for DRI drivers; used e.g. by X server - substituteInPlace "$dev/lib/pkgconfig/dri.pc" --replace "$drivers" "${libglvnd.driverLink}" - [ -f "$dev/lib/pkgconfig/d3d.pc" ] && substituteInPlace "$dev/lib/pkgconfig/d3d.pc" --replace "$drivers" "${libglvnd.driverLink}" + for pc in lib/pkgconfig/{dri,d3d}.pc; do + [ -f "$dev/$pc" ] && substituteInPlace "$dev/$pc" --replace "$drivers" "${libglvnd.driverLink}" + done # remove pkgconfig files for GL/EGL; they are provided by libGL. rm -f $dev/lib/pkgconfig/{gl,egl}.pc |