From e2ef5b81fb470eded7c53c2863b8dbbb4172c40c Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sun, 23 Apr 2023 11:55:46 +0200 Subject: egl-wayland: Remove includedir from pkg-config file --- pkgs/development/libraries/egl-wayland/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/egl-wayland/default.nix b/pkgs/development/libraries/egl-wayland/default.nix index fbef69f3cda..d3ff8a8af0f 100644 --- a/pkgs/development/libraries/egl-wayland/default.nix +++ b/pkgs/development/libraries/egl-wayland/default.nix @@ -36,6 +36,12 @@ stdenv.mkDerivation rec { }) ]; + postPatch = '' + # Declares an includedir but doesn't install any headers + # CMake's `pkg_check_modules(NAME wayland-eglstream IMPORTED_TARGET)` considers this an error + sed -i -e '/includedir/d' wayland-eglstream.pc.in + ''; + depsBuildBuild = [ pkg-config ]; @@ -59,12 +65,6 @@ stdenv.mkDerivation rec { eglexternalplatform ]; - postFixup = '' - # Doubled prefix in pc file after postbuild hook replaces includedir prefix variable with dev output path - substituteInPlace $dev/lib/pkgconfig/wayland-eglstream.pc \ - --replace "=$dev/$dev" "=$dev" - ''; - meta = with lib; { description = "The EGLStream-based Wayland external platform"; homepage = "https://github.com/NVIDIA/egl-wayland/"; -- cgit 1.4.1