27 stdenv.mkDerivation rec {
28 pname = "nextcloud-client";
31 outputs = [ "out" "dev" ];
33 src = fetchFromGitHub {
37 hash = "sha256-ScWkEOx2tHoCQbFwBvJQgk2YoYOTPi3PrVsaDNJBEUI=";
41 # Explicitly move dbus configuration files to the store path rather than `/etc/dbus-1/services`.
42 ./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
43 ./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch
47 for file in src/libsync/vfs/*/CMakeLists.txt; do
48 substituteInPlace $file \
49 --replace "PLUGINDIR" "KDE_INSTALL_PLUGINDIR"
80 "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
81 # make xdg-open overrideable at runtime
82 "--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}"
87 "-DCMAKE_INSTALL_LIBDIR=lib" # expected to be prefix-relative by build code setting RPATH
88 "-DMIRALL_VERSION_SUFFIX=" # remove git suffix from version
96 description = "Nextcloud themed desktop client";
97 homepage = "https://nextcloud.com";
98 license = licenses.gpl2Plus;
99 maintainers = with maintainers; [ kranzes SuperSandro2000 ];
100 platforms = platforms.linux;
101 mainProgram = "nextcloud";