From 671e390c61253554c31fc95bfb43226d50f33987 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Wed, 5 Mar 2025 23:05:36 +0100 Subject: [PATCH 1/2] qt6ct: switch to new upstream As pointed out in https://github.com/NixOS/nixpkgs/pull/384376#issuecomment-2701697975 the new upstream is hosted on opencode.net Signed-off-by: Sefa Eyeoglu --- pkgs/tools/misc/qt6ct/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/qt6ct/default.nix b/pkgs/tools/misc/qt6ct/default.nix index a6495283da19..0d025a2d8e27 100644 --- a/pkgs/tools/misc/qt6ct/default.nix +++ b/pkgs/tools/misc/qt6ct/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, - fetchFromGitHub, + fetchFromGitLab, qtbase, qtsvg, qtwayland, @@ -14,11 +14,12 @@ stdenv.mkDerivation (finalAttrs: { pname = "qt6ct"; version = "0.10"; - src = fetchFromGitHub { - owner = "ilya-fedin"; + src = fetchFromGitLab { + domain = "www.opencode.net"; + owner = "trialuser"; repo = "qt6ct"; tag = finalAttrs.version; - hash = "sha256-ePY+BEpEcAq11+pUMjQ4XG358x3bXFQWwI1UAi+KmLo="; + hash = "sha256-o2k/b4AGiblS1CkNInqNrlpM1Y7pydIJzEVgVd3ao50="; }; nativeBuildInputs = [ @@ -41,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: { meta = { description = "Qt6 Configuration Tool"; - homepage = "https://github.com/ilya-fedin/qt6ct"; + homepage = "https://www.opencode.net/trialuser/qt6ct"; platforms = lib.platforms.linux; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ From 1c4ac8fe1ff4a37d8c9966dd9d02bec0b9eae1be Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Wed, 5 Mar 2025 23:06:44 +0100 Subject: [PATCH 2/2] qt6ct: use CMake Signed-off-by: Sefa Eyeoglu --- pkgs/tools/misc/qt6ct/default.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/misc/qt6ct/default.nix b/pkgs/tools/misc/qt6ct/default.nix index 0d025a2d8e27..5fb7301afd4e 100644 --- a/pkgs/tools/misc/qt6ct/default.nix +++ b/pkgs/tools/misc/qt6ct/default.nix @@ -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";