summary refs log tree commit diff
diff options
context:
space:
mode:
authorMGlolenstine <mglolenstine@gmail.com>2023-06-26 12:08:26 +0200
committerMGlolenstine <mglolenstine@gmail.com>2023-06-26 12:08:26 +0200
commita28d962e11d39961552c3f6bad2e65816c2dcc31 (patch)
treef9c11f811c99389813935c541635844229eb8803
parentecb8485514605749222e0f99c40168d97df0d4c7 (diff)
downloadnixpkgs-a28d962e11d39961552c3f6bad2e65816c2dcc31.tar
nixpkgs-a28d962e11d39961552c3f6bad2e65816c2dcc31.tar.gz
nixpkgs-a28d962e11d39961552c3f6bad2e65816c2dcc31.tar.bz2
nixpkgs-a28d962e11d39961552c3f6bad2e65816c2dcc31.tar.lz
nixpkgs-a28d962e11d39961552c3f6bad2e65816c2dcc31.tar.xz
nixpkgs-a28d962e11d39961552c3f6bad2e65816c2dcc31.tar.zst
nixpkgs-a28d962e11d39961552c3f6bad2e65816c2dcc31.zip
seafile-client: 8.0.7 -> 9.0.2
-rw-r--r--pkgs/applications/networking/seafile-client/default.nix47
1 files changed, 33 insertions, 14 deletions
diff --git a/pkgs/applications/networking/seafile-client/default.nix b/pkgs/applications/networking/seafile-client/default.nix
index adda284a6b8..faa6304c38a 100644
--- a/pkgs/applications/networking/seafile-client/default.nix
+++ b/pkgs/applications/networking/seafile-client/default.nix
@@ -1,26 +1,45 @@
-{ mkDerivation, lib, fetchFromGitHub, pkg-config, cmake, qtbase, qttools
-, seafile-shared, jansson, libsearpc
-, withShibboleth ? true, qtwebengine }:
+{ lib
+, stdenv
+, fetchFromGitHub
+, pkg-config
+, cmake
+, qtbase
+, qttools
+, libuuid
+, seafile-shared
+, jansson
+, libsearpc
+, withShibboleth ? true
+, qtwebengine
+, wrapQtAppsHook
+}:
 
-mkDerivation rec {
+stdenv.mkDerivation rec {
   pname = "seafile-client";
-  version = "8.0.7";
+  version = "9.0.2";
 
   src = fetchFromGitHub {
     owner = "haiwen";
     repo = "seafile-client";
-    # Tag v8.0.7 used to point to this commit, but was re-tagged later to a state
-    # that fails to link properly
-    rev = "8b96abf64e6aa19e3beeff6b322bcd6d28120bdd";
-    sha256 = "00wfr7dvbyl7pg1xgssgz8a94c7c4n5r9266lhy9qcbz456hdcgj";
+    rev = "v${version}";
+    sha256 = "sha256-6AsvqlXDmTr3yBvYlV/0qjH+KnZ03S5TU7yzGt0MqiI=";
   };
 
-  nativeBuildInputs = [ pkg-config cmake ];
-  buildInputs = [ qtbase qttools seafile-shared jansson libsearpc ]
-    ++ lib.optional withShibboleth qtwebengine;
+  nativeBuildInputs = [
+    libuuid
+    pkg-config
+    cmake
+    wrapQtAppsHook
+    qttools
+  ];
+
+  buildInputs = [
+    seafile-shared
+    jansson
+    libsearpc
+  ] ++ lib.optional withShibboleth qtwebengine;
 
-  cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]
-    ++ lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
+  cmakeFlags = lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
 
   qtWrapperArgs = [
     "--suffix PATH : ${lib.makeBinPath [ seafile-shared ]}"