Skip to content

Commit 1c4ac8f

Browse files
committed
qt6ct: use CMake
Signed-off-by: Sefa Eyeoglu <[email protected]>
1 parent 671e390 commit 1c4ac8f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

pkgs/tools/misc/qt6ct/default.nix

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
lib,
3-
stdenv,
2+
cmake,
43
fetchFromGitLab,
4+
lib,
55
qtbase,
66
qtsvg,
7-
qtwayland,
8-
qmake,
97
qttools,
8+
qtwayland,
9+
stdenv,
1010
wrapQtAppsHook,
1111
}:
1212

@@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
2323
};
2424

2525
nativeBuildInputs = [
26-
qmake
26+
cmake
2727
qttools
2828
wrapQtAppsHook
2929
];
@@ -34,11 +34,10 @@ stdenv.mkDerivation (finalAttrs: {
3434
qtwayland
3535
];
3636

37-
qmakeFlags = [
38-
"LRELEASE_EXECUTABLE=${lib.getDev qttools}/bin/lrelease"
39-
"PLUGINDIR=${placeholder "out"}/${qtbase.qtPluginPrefix}"
40-
"LIBDIR=${placeholder "out"}/lib"
41-
];
37+
postPatch = ''
38+
substituteInPlace src/qt6ct-qtplugin/CMakeLists.txt src/qt6ct-style/CMakeLists.txt \
39+
--replace-fail "\''${PLUGINDIR}" "$out/${qtbase.qtPluginPrefix}"
40+
'';
4241

4342
meta = {
4443
description = "Qt6 Configuration Tool";

0 commit comments

Comments
 (0)