summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorrewine <luhongxu@deepin.org>2023-01-07 16:34:02 +0800
committerrewine <lhongxu@outlook.com>2023-01-25 21:37:34 +0800
commit056add9b3f1dfad86540fdf35535c393c4098620 (patch)
treea86715f2502853e7c9a6595afaaf7664b6f75e2e /pkgs/desktops
parent919157fcbd75fb5552c4b8494a1768e890e4065a (diff)
downloadnixpkgs-056add9b3f1dfad86540fdf35535c393c4098620.tar
nixpkgs-056add9b3f1dfad86540fdf35535c393c4098620.tar.gz
nixpkgs-056add9b3f1dfad86540fdf35535c393c4098620.tar.bz2
nixpkgs-056add9b3f1dfad86540fdf35535c393c4098620.tar.lz
nixpkgs-056add9b3f1dfad86540fdf35535c393c4098620.tar.xz
nixpkgs-056add9b3f1dfad86540fdf35535c393c4098620.tar.zst
nixpkgs-056add9b3f1dfad86540fdf35535c393c4098620.zip
dtkgui: init at 5.6.3
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/deepin/default.nix2
-rw-r--r--pkgs/desktops/deepin/library/dtkgui/default.nix57
2 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix
index f61c139497d..fe0f073a3ad 100644
--- a/pkgs/desktops/deepin/default.nix
+++ b/pkgs/desktops/deepin/default.nix
@@ -7,6 +7,8 @@ let
     #### LIBRARIES
     dtkcommon = callPackage ./library/dtkcommon { };
     dtkcore = callPackage ./library/dtkcore { };
+    dtkgui = callPackage ./library/dtkgui { };
+
   };
 in
 lib.makeScope libsForQt5.newScope packages
diff --git a/pkgs/desktops/deepin/library/dtkgui/default.nix b/pkgs/desktops/deepin/library/dtkgui/default.nix
new file mode 100644
index 00000000000..0cc40768285
--- /dev/null
+++ b/pkgs/desktops/deepin/library/dtkgui/default.nix
@@ -0,0 +1,57 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, pkg-config
+, cmake
+, qttools
+, wrapQtAppsHook
+, librsvg
+, lxqt
+, dtkcore
+, qtimageformats
+, freeimage
+}:
+
+stdenv.mkDerivation rec {
+  pname = "dtkgui";
+  version = "5.6.3";
+
+  src = fetchFromGitHub {
+    owner = "linuxdeepin";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-r6ZwGPiK6CcKEg8RoHV07wJbQI3idJFV3WFtuKim8n4=";
+  };
+
+  nativeBuildInputs = [
+    cmake
+    qttools
+    pkg-config
+    wrapQtAppsHook
+  ];
+
+  buildInputs = [
+    lxqt.libqtxdg
+  ];
+
+  propagatedBuildInputs = [
+    dtkcore
+    librsvg
+    qtimageformats
+    freeimage
+  ];
+
+  cmakeFlags = [
+    "-DDVERSION=${version}"
+    "-DBUILD_DOCS=OFF"
+    "-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
+  ];
+
+  meta = with lib; {
+    description = "Deepin Toolkit, gui module for DDE look and feel";
+    homepage = "https://github.com/linuxdeepin/dtkgui";
+    license = licenses.lgpl3Plus;
+    platforms = platforms.linux;
+    maintainers = teams.deepin.members;
+  };
+}