ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ow / owncloud-client / package.nix
blob0de43753d13fb01edbc03633b1cfc4b24e51ccc9
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , pkg-config
5 , cmake
6 , extra-cmake-modules
7 , qt6
8 , qt6Packages
9 , sqlite
10 , libsecret
11 , libre-graph-api-cpp-qt-client
12 , kdsingleapplication
13 # darwin only:
14 , libinotify-kqueue
15 , sparkleshare
18 stdenv.mkDerivation rec {
19   pname = "owncloud-client";
20   version = "5.3.1";
22   src = fetchFromGitHub {
23     owner = "owncloud";
24     repo = "client";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-ot+2hxipeZ5eI6nPJ8XGE8gFMNQoblUq+koAFZpZDv4=";
27   };
29   nativeBuildInputs = [
30     pkg-config
31     cmake
32     extra-cmake-modules
33     qt6.qttools
34     qt6.wrapQtAppsHook
35   ];
37   buildInputs = [
38     sqlite
39     libsecret
40     qt6.qtbase
41     qt6.qtsvg # Needed for the systray icon
42     qt6Packages.qtkeychain
43     libre-graph-api-cpp-qt-client
44     kdsingleapplication
45   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
46     libinotify-kqueue sparkleshare
47   ];
49   meta = with lib; {
50     description = "Synchronise your ownCloud with your computer using this desktop client";
51     homepage = "https://owncloud.org";
52     maintainers = with maintainers; [ qknight hellwolf ];
53     platforms = platforms.unix;
54     license = licenses.gpl2Plus;
55     changelog = "https://github.com/owncloud/client/releases/tag/v${version}";
56   };