about summary refs log tree commit diff
diff options
context:
space:
mode:
authorrewine <luhongxu@deepin.org>2024-05-31 16:23:22 +0800
committerrewine <luhongxu@deepin.org>2024-06-11 17:05:53 +0800
commitbe6b9d7bd3c815f34611084c1cf3ab70bc4a77dd (patch)
tree28f92f0acdd7816c470d6ccab8b7685ae0a584ba
parent702ee1d7403ef564dcbe3aca980cc435e129b372 (diff)
deepin.qt6integration: init at 6.0.16
-rw-r--r--pkgs/desktops/deepin/default.nix1
-rw-r--r--pkgs/desktops/deepin/library/qt6integration/default.nix47
2 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix
index c41b640b50353..77811b417663f 100644
--- a/pkgs/desktops/deepin/default.nix
+++ b/pkgs/desktops/deepin/default.nix
@@ -29,6 +29,7 @@ let
     dtk6declarative = callPackage ./library/dtk6declarative { };
     dtk6systemsettings = callPackage ./library/dtk6systemsettings { };
     qt6platform-plugins = callPackage ./library/qt6platform-plugins { };
+    qt6integration = callPackage ./library/qt6integration { };
 
     #### CORE
     deepin-kwin = callPackage ./core/deepin-kwin { };
diff --git a/pkgs/desktops/deepin/library/qt6integration/default.nix b/pkgs/desktops/deepin/library/qt6integration/default.nix
new file mode 100644
index 0000000000000..3f6f9dff964b4
--- /dev/null
+++ b/pkgs/desktops/deepin/library/qt6integration/default.nix
@@ -0,0 +1,47 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, cmake
+, pkg-config
+, dtk6widget
+, qt6Packages
+, gtest
+}:
+
+stdenv.mkDerivation rec {
+  pname = "qt6integration";
+  version = "6.0.16";
+
+  src = fetchFromGitHub {
+    owner = "linuxdeepin";
+    repo = pname;
+    rev = version;
+    hash = "sha256-2QNHJZ4Bz21UyuRhD/9gC7Ls9GggHp4QwtFzoxyyAL4=";
+  };
+
+  nativeBuildInputs = [
+    cmake
+    pkg-config
+  ];
+
+  buildInputs = [
+    dtk6widget
+    qt6Packages.qtbase
+    gtest
+  ];
+
+  cmakeFlags = [
+    "-DDTK_VERSION=${version}"
+    "-DPLUGIN_INSTALL_BASE_DIR=${placeholder "out"}/${qt6Packages.qtbase.qtPluginPrefix}"
+  ];
+
+  dontWrapQtApps = true;
+
+  meta = {
+    description = "Qt platform theme integration plugins for DDE";
+    homepage = "https://github.com/linuxdeepin/qt6integration";
+    license = lib.licenses.lgpl3Plus;
+    platforms = lib.platforms.linux;
+    maintainers = lib.teams.deepin.members;
+  };
+}