egl-wayland: Remove includedir from pkg-config file

This commit is contained in:
OPNA2608 2023-04-23 11:55:46 +02:00
parent da2aa5a0db
commit e2ef5b81fb

View file

@ -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/";