summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-01-27 00:02:25 +0000
committerGitHub <noreply@github.com>2023-01-27 00:02:25 +0000
commit2a8fae3ee59a38a31dfe388bd873772f47e00a5b (patch)
tree2dd9d3b0594af505e95eac57f4e289f5a267129f /pkgs/desktops
parent578f1ba854d2c4d5a628c2749558e89dd38359eb (diff)
parent32e7d3f420607c2d7f9fe66fdd945a2f95c7fded (diff)
downloadnixpkgs-2a8fae3ee59a38a31dfe388bd873772f47e00a5b.tar
nixpkgs-2a8fae3ee59a38a31dfe388bd873772f47e00a5b.tar.gz
nixpkgs-2a8fae3ee59a38a31dfe388bd873772f47e00a5b.tar.bz2
nixpkgs-2a8fae3ee59a38a31dfe388bd873772f47e00a5b.tar.lz
nixpkgs-2a8fae3ee59a38a31dfe388bd873772f47e00a5b.tar.xz
nixpkgs-2a8fae3ee59a38a31dfe388bd873772f47e00a5b.tar.zst
nixpkgs-2a8fae3ee59a38a31dfe388bd873772f47e00a5b.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/deepin/apps/deepin-calculator/default.nix54
-rw-r--r--pkgs/desktops/deepin/default.nix3
2 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/apps/deepin-calculator/default.nix b/pkgs/desktops/deepin/apps/deepin-calculator/default.nix
new file mode 100644
index 00000000000..e565eabe182
--- /dev/null
+++ b/pkgs/desktops/deepin/apps/deepin-calculator/default.nix
@@ -0,0 +1,54 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, dtkwidget
+, qt5integration
+, qt5platform-plugins
+, dde-qt-dbus-factory
+, cmake
+, qtbase
+, qttools
+, pkg-config
+, wrapQtAppsHook
+, gtest
+}:
+
+stdenv.mkDerivation rec {
+  pname = "deepin-calculator";
+  version = "5.8.23";
+
+  src = fetchFromGitHub {
+    owner = "linuxdeepin";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-MczQWYIQfpSkyA3144y3zly66N0vgcVvTYR6B7Hq1aw=";
+  };
+
+  nativeBuildInputs = [
+    cmake
+    qttools
+    pkg-config
+    wrapQtAppsHook
+  ];
+
+  buildInputs = [
+    dtkwidget
+    dde-qt-dbus-factory
+    gtest
+  ];
+
+  qtWrapperArgs = [
+    "--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
+    "--prefix QT_QPA_PLATFORM_PLUGIN_PATH : ${qt5platform-plugins}/${qtbase.qtPluginPrefix}"
+  ];
+
+  cmakeFlags = [ "-DVERSION=${version}" ];
+
+  meta = with lib; {
+    description = "An easy to use calculator for ordinary users";
+    homepage = "https://github.com/linuxdeepin/deepin-calculator";
+    license = licenses.gpl3Plus;
+    platforms = platforms.linux;
+    maintainers = teams.deepin.members;
+  };
+}
diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix
index 9711fe51480..037cfaa3f33 100644
--- a/pkgs/desktops/deepin/default.nix
+++ b/pkgs/desktops/deepin/default.nix
@@ -19,6 +19,9 @@ let
     gio-qt = callPackage ./library/gio-qt { };
     image-editor = callPackage ./library/image-editor { };
     udisks2-qt5 = callPackage ./library/udisks2-qt5 { };
+
+    #### Dtk Application
+    deepin-calculator = callPackage ./apps/deepin-calculator { };
   };
 in
 lib.makeScope libsForQt5.newScope packages