1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/by-name/ow/owncloud-client/package.nix
2024-01-04 23:32:58 +02:00

58 lines
1.2 KiB
Nix

{ 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.2.1";
src = fetchFromGitHub {
owner = "owncloud";
repo = "client";
rev = "refs/tags/v${version}";
hash = "sha256-yErMHh0QbWVpJhNiXU1IIGpQ5CGARN/4cqELRMoxSac=";
};
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}";
};
}