summary refs log tree commit diff
path: root/pkgs/by-name/ow/owncloud-client/package.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-10-28 12:01:19 +0000
committerGitHub <noreply@github.com>2023-10-28 12:01:19 +0000
commit519b7ea0c3a8e612eaf7e64128e967549615b6a7 (patch)
tree8052537e4fd51b1575e0a8b9bfb26a7c5487e7b5 /pkgs/by-name/ow/owncloud-client/package.nix
parentcb64b504a0a80c4df9e96426d830f94080760628 (diff)
parentb30e97ace2945f9ddcf1b233e04d45ef3c511d9b (diff)
downloadnixpkgs-519b7ea0c3a8e612eaf7e64128e967549615b6a7.tar
nixpkgs-519b7ea0c3a8e612eaf7e64128e967549615b6a7.tar.gz
nixpkgs-519b7ea0c3a8e612eaf7e64128e967549615b6a7.tar.bz2
nixpkgs-519b7ea0c3a8e612eaf7e64128e967549615b6a7.tar.lz
nixpkgs-519b7ea0c3a8e612eaf7e64128e967549615b6a7.tar.xz
nixpkgs-519b7ea0c3a8e612eaf7e64128e967549615b6a7.tar.zst
nixpkgs-519b7ea0c3a8e612eaf7e64128e967549615b6a7.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/by-name/ow/owncloud-client/package.nix')
-rw-r--r--pkgs/by-name/ow/owncloud-client/package.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/by-name/ow/owncloud-client/package.nix b/pkgs/by-name/ow/owncloud-client/package.nix
new file mode 100644
index 00000000000..5edbd5d0f6b
--- /dev/null
+++ b/pkgs/by-name/ow/owncloud-client/package.nix
@@ -0,0 +1,57 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, pkg-config
+, cmake
+, extra-cmake-modules
+, qt6
+, qt6Packages
+, sqlite
+, libsecret
+, libre-graph-api-cpp-qt-client
+, kdsingleapplication
+# darwin only:
+, libinotify-kqueue
+, sparkleshare
+}:
+
+stdenv.mkDerivation rec {
+  pname = "owncloud-client";
+  version = "5.0.0";
+
+  src = fetchFromGitHub {
+    owner = "owncloud";
+    repo = "client";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-SSMNmWrCT1sGa38oY8P84QNedNkQPcIRWrV9B65B5X8=";
+  };
+
+  nativeBuildInputs = [
+    pkg-config
+    cmake
+    extra-cmake-modules
+    qt6.qttools
+    qt6.wrapQtAppsHook
+  ];
+
+  buildInputs = [
+    sqlite
+    libsecret
+    qt6.qtbase
+    qt6.qtsvg # Needed for the systray icon
+    qt6Packages.qtkeychain
+    libre-graph-api-cpp-qt-client
+    kdsingleapplication
+  ] ++ lib.optionals stdenv.isDarwin [
+    libinotify-kqueue sparkleshare
+  ];
+
+  meta = with lib; {
+    description = "Synchronise your ownCloud with your computer using this desktop client";
+    homepage = "https://owncloud.org";
+    maintainers = with maintainers; [ qknight hellwolf ];
+    platforms = platforms.unix;
+    license = licenses.gpl2Plus;
+    changelog = "https://github.com/owncloud/client/releases/tag/v${version}";
+  };
+}