lxqt.lxqt-build-tools: Fix finding GLib 2.72

Without this build of packages using this (e.g. lxqt.libqtxdg) will fail.
This commit is contained in:
Jan Tojnar 2022-03-25 19:50:31 +01:00
parent 9102478153
commit 44c7781ee8

View File

@ -22,11 +22,16 @@ mkDerivation rec {
sha256 = "1hb04zgpalxv6da3myf1dxsbjix15dczzfq8a24g5dg2zfhwpx21";
};
# Nix clang on darwin identifies as 'Clang', not 'AppleClang'
# Without this, dependants fail to link.
postPatch = ''
# Nix clang on darwin identifies as 'Clang', not 'AppleClang'
# Without this, dependants fail to link.
substituteInPlace cmake/modules/LXQtCompilerSettings.cmake \
--replace AppleClang Clang
# GLib 2.72 moved the file from gio-unix-2.0 to gio-2.0.
# https://github.com/lxqt/lxqt-build-tools/pull/74
substituteInPlace cmake/find-modules/FindGLIB.cmake \
--replace gio/gunixconnection.h gio/gunixfdlist.h
'';
nativeBuildInputs = [