about summary refs log tree commit diff
path: root/pkgs/desktops/deepin/core/dde-launchpad/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/deepin/core/dde-launchpad/default.nix')
-rw-r--r--pkgs/desktops/deepin/core/dde-launchpad/default.nix43
1 files changed, 17 insertions, 26 deletions
diff --git a/pkgs/desktops/deepin/core/dde-launchpad/default.nix b/pkgs/desktops/deepin/core/dde-launchpad/default.nix
index f531418750d4b..7544bc5751752 100644
--- a/pkgs/desktops/deepin/core/dde-launchpad/default.nix
+++ b/pkgs/desktops/deepin/core/dde-launchpad/default.nix
@@ -2,57 +2,48 @@
 , lib
 , fetchFromGitHub
 , cmake
-, qttools
 , pkg-config
-, wrapQtAppsHook
-, dtkwidget
-, dtkdeclarative
-, qtbase
-, appstream-qt
-, kitemmodels
-, qt5integration
+, qt6Packages
+, qt6integration
+, qt6platform-plugins
+, dtk6declarative
+, dde-shell
 }:
 
 stdenv.mkDerivation rec {
   pname = "dde-launchpad";
-  version = "0.4.4";
+  version = "0.7.0";
 
   src = fetchFromGitHub {
     owner = "linuxdeepin";
     repo = pname;
     rev = version;
-    hash = "sha256-az8BC3n44NGpATNu3Exjn3H7Rumx/YqDXztEGqCpAbY=";
+    hash = "sha256-nT89cUx7Bxf+d+fgqvXZ9U0i/qf1oP2alUB90UXpNcM=";
   };
 
-  postPatch = ''
-    substituteInPlace desktopintegration.cpp \
-      --replace "AppStreamQt/pool.h" "AppStreamQt5/pool.h"
-  '';
-
   nativeBuildInputs = [
     cmake
-    qttools
     pkg-config
-    wrapQtAppsHook
+    qt6Packages.qttools
+    qt6Packages.wrapQtAppsHook
   ];
 
   buildInputs = [
-    dtkwidget
-    dtkdeclarative
+    qt6integration
+    qt6platform-plugins
+    dtk6declarative
+    dde-shell
+  ] ++ (with qt6Packages; [
     qtbase
+    qtsvg
+    qtwayland
     appstream-qt
-    kitemmodels
-  ];
+  ]);
 
   cmakeFlags = [
     "-DSYSTEMD_USER_UNIT_DIR=${placeholder "out"}/lib/systemd/user"
   ];
 
-  # qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
-  qtWrapperArgs = [
-    "--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
-  ];
-
   meta = with lib; {
     description = "'launcher' or 'start menu' component for DDE";
     mainProgram = "dde-launchpad";