qt6ct: use CMake

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2025-03-06 09:14:05 +01:00
parent 671e390c61
commit 1c4ac8fe1f
+9 -10
View File
@@ -1,12 +1,12 @@
{
lib,
stdenv,
cmake,
fetchFromGitLab,
lib,
qtbase,
qtsvg,
qtwayland,
qmake,
qttools,
qtwayland,
stdenv,
wrapQtAppsHook,
}:
@@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
};
nativeBuildInputs = [
qmake
cmake
qttools
wrapQtAppsHook
];
@@ -34,11 +34,10 @@ stdenv.mkDerivation (finalAttrs: {
qtwayland
];
qmakeFlags = [
"LRELEASE_EXECUTABLE=${lib.getDev qttools}/bin/lrelease"
"PLUGINDIR=${placeholder "out"}/${qtbase.qtPluginPrefix}"
"LIBDIR=${placeholder "out"}/lib"
];
postPatch = ''
substituteInPlace src/qt6ct-qtplugin/CMakeLists.txt src/qt6ct-style/CMakeLists.txt \
--replace-fail "\''${PLUGINDIR}" "$out/${qtbase.qtPluginPrefix}"
'';
meta = {
description = "Qt6 Configuration Tool";