nixpkgs/pkgs/applications/networking/nextcloud-client/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

103 lines
2.1 KiB
Nix
Raw Normal View History

2019-08-23 20:54:41 +00:00
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
2022-04-16 00:35:15 +00:00
, extra-cmake-modules
2019-08-23 20:54:41 +00:00
, inotify-tools
2022-04-16 00:35:27 +00:00
, installShellFiles
, libcloudproviders
, librsvg
2019-08-23 20:54:41 +00:00
, libsecret
, openssl
, pcre
, pkg-config
2019-08-23 20:54:41 +00:00
, qtbase
, qtkeychain
, qttools
, qtwebengine
, qtwebsockets
2020-08-20 10:41:44 +00:00
, qtquickcontrols2
, qtgraphicaleffects
2022-04-16 00:35:15 +00:00
, plasma5Packages
2022-04-16 00:35:27 +00:00
, sphinx
2019-08-23 20:54:41 +00:00
, sqlite
2022-02-26 18:10:06 +00:00
, xdg-utils
}:
mkDerivation rec {
pname = "nextcloud-client";
version = "3.8.0";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "nextcloud";
repo = "desktop";
rev = "v${version}";
sha256 = "sha256-kwSETOz/0/LMypbTmwvMMrGzZdquBjkXfoSrLgTfPiQ=";
};
patches = [
# Explicitly move dbus configuration files to the store path rather than `/etc/dbus-1/services`.
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch
];
postPatch = ''
for file in src/libsync/vfs/*/CMakeLists.txt; do
substituteInPlace $file \
--replace "PLUGINDIR" "KDE_INSTALL_PLUGINDIR"
done
'';
2019-08-23 20:54:41 +00:00
nativeBuildInputs = [
pkg-config
2019-08-23 20:54:41 +00:00
cmake
extra-cmake-modules
librsvg
2022-04-16 00:35:27 +00:00
sphinx
2019-08-23 20:54:41 +00:00
];
2019-08-23 20:54:41 +00:00
buildInputs = [
inotify-tools
libcloudproviders
libsecret
2019-08-23 20:54:41 +00:00
openssl
pcre
2022-04-16 00:35:15 +00:00
plasma5Packages.kio
2019-08-23 20:54:41 +00:00
qtbase
qtkeychain
qttools
qtwebengine
2020-08-20 10:41:44 +00:00
qtquickcontrols2
qtgraphicaleffects
qtwebsockets
2019-08-23 20:54:41 +00:00
sqlite
];
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
# make xdg-open overrideable at runtime
"--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}"
];
cmakeFlags = [
2022-12-09 19:02:50 +00:00
"-DBUILD_UPDATER=off"
"-DCMAKE_INSTALL_LIBDIR=lib" # expected to be prefix-relative by build code setting RPATH
"-DNO_SHIBBOLETH=1" # allows to compile without qtwebkit
];
2022-04-16 00:35:27 +00:00
postBuild = ''
make doc-man
'';
meta = with lib; {
description = "Nextcloud themed desktop client";
homepage = "https://nextcloud.com";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ kranzes SuperSandro2000 ];
platforms = platforms.linux;
2022-05-25 10:02:40 +00:00
mainProgram = "nextcloud";
};
}