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 23:54:41 +03:00
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
2022-04-16 03:35:15 +03:00
, extra-cmake-modules
2019-08-23 23:54:41 +03:00
, inotify-tools
2022-04-16 03:35:27 +03:00
, installShellFiles
, libcloudproviders
, librsvg
2019-08-23 23:54:41 +03:00
, libsecret
, openssl
, pcre
, pkg-config
2019-08-23 23:54:41 +03:00
, qtbase
, qtkeychain
, qttools
, qtwebengine
, qtwebsockets
2020-08-20 13:41:44 +03:00
, qtquickcontrols2
, qtgraphicaleffects
2022-04-16 03:35:15 +03:00
, plasma5Packages
2022-04-16 03:35:27 +03:00
, sphinx
2019-08-23 23:54:41 +03:00
, sqlite
2022-02-26 21:10:06 +03:00
, xdg-utils
}:
mkDerivation rec {
pname = "nextcloud-client";
2022-12-09 22:02:50 +03:00
version = "3.6.4";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "nextcloud";
repo = "desktop";
rev = "v${version}";
2022-12-09 22:02:50 +03:00
sha256 = "sha256-ZtDgm9xlBQflVXsxjt4bFmRby6ni0wjaGYaoiEWH9Q0=";
};
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 23:54:41 +03:00
nativeBuildInputs = [
pkg-config
2019-08-23 23:54:41 +03:00
cmake
extra-cmake-modules
librsvg
2022-04-16 03:35:27 +03:00
sphinx
2019-08-23 23:54:41 +03:00
];
2019-08-23 23:54:41 +03:00
buildInputs = [
inotify-tools
libcloudproviders
libsecret
2019-08-23 23:54:41 +03:00
openssl
pcre
2022-04-16 03:35:15 +03:00
plasma5Packages.kio
2019-08-23 23:54:41 +03:00
qtbase
qtkeychain
qttools
qtwebengine
2020-08-20 13:41:44 +03:00
qtquickcontrols2
qtgraphicaleffects
qtwebsockets
2019-08-23 23:54:41 +03: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 22:02:50 +03: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 03:35:27 +03: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 13:02:40 +03:00
mainProgram = "nextcloud";
};
}