qt6.qttools: drop incorrect references to CMAKE_INSTALL_INCLUDEDIR

This commit is contained in:
Nick Cao 2023-10-10 10:54:52 -04:00
parent 5f3c3c43a8
commit 76e234836a
No known key found for this signature in database

View file

@ -23,6 +23,13 @@ qtModule {
env.NIX_CFLAGS_COMPILE = toString [
"-DNIX_OUTPUT_OUT=\"${placeholder "out"}\""
];
postPatch = ''
substituteInPlace \
src/qdoc/catch/CMakeLists.txt \
src/qdoc/catch_generators/CMakeLists.txt \
src/qdoc/catch_conversions/CMakeLists.txt \
--replace ''\'''${CMAKE_INSTALL_INCLUDEDIR}' "$out/include"
'';
postInstall = ''
mkdir -p "$dev"
ln -s "$out/bin" "$dev/bin"