2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2022-04-27 09:35:20 +00:00
|
|
|
, extra-cmake-modules
|
2020-04-24 23:36:52 +00:00
|
|
|
, inotify-tools
|
2024-09-19 14:19:46 +00:00
|
|
|
, kdePackages
|
2020-04-24 23:36:52 +00:00
|
|
|
, libcloudproviders
|
2022-05-18 14:49:53 +00:00
|
|
|
, librsvg
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsecret
|
|
|
|
, openssl
|
|
|
|
, pcre
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2024-09-19 14:19:46 +00:00
|
|
|
, qt5compat
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtbase
|
|
|
|
, qtkeychain
|
2024-09-19 14:19:46 +00:00
|
|
|
, qtsvg
|
2020-04-24 23:36:52 +00:00
|
|
|
, qttools
|
|
|
|
, qtwebengine
|
2021-02-24 18:30:23 +00:00
|
|
|
, qtwebsockets
|
2022-04-27 09:35:20 +00:00
|
|
|
, sphinx
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlite
|
2022-03-05 16:20:37 +00:00
|
|
|
, xdg-utils
|
2024-01-02 11:29:13 +00:00
|
|
|
, wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nextcloud-client";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.14.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-09-19 14:19:46 +00:00
|
|
|
owner = "nextcloud-releases";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "desktop";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-/jRD0swNs59xugsXLbesGcTtyGdc/y/iwiDVoErW+d4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-02-24 18:30:23 +00:00
|
|
|
# Explicitly move dbus configuration files to the store path rather than `/etc/dbus-1/services`.
|
2020-04-24 23:36:52 +00:00
|
|
|
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
|
2021-12-06 16:07:01 +00:00
|
|
|
./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
for file in src/libsync/vfs/*/CMakeLists.txt; do
|
|
|
|
substituteInPlace $file \
|
2024-09-19 14:19:46 +00:00
|
|
|
--replace-fail "PLUGINDIR" "KDE_INSTALL_PLUGINDIR"
|
2022-04-27 09:35:20 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
cmake
|
2022-05-18 14:49:53 +00:00
|
|
|
extra-cmake-modules
|
|
|
|
librsvg
|
2022-04-27 09:35:20 +00:00
|
|
|
sphinx
|
2024-01-02 11:29:13 +00:00
|
|
|
wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
inotify-tools
|
2024-09-19 14:19:46 +00:00
|
|
|
kdePackages.kio
|
2020-04-24 23:36:52 +00:00
|
|
|
libcloudproviders
|
2021-02-24 18:30:23 +00:00
|
|
|
libsecret
|
2020-04-24 23:36:52 +00:00
|
|
|
openssl
|
|
|
|
pcre
|
2024-09-19 14:19:46 +00:00
|
|
|
qt5compat
|
2020-04-24 23:36:52 +00:00
|
|
|
qtbase
|
|
|
|
qtkeychain
|
2024-09-19 14:19:46 +00:00
|
|
|
qtsvg
|
2020-04-24 23:36:52 +00:00
|
|
|
qttools
|
|
|
|
qtwebengine
|
2021-02-24 18:30:23 +00:00
|
|
|
qtwebsockets
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
|
2022-08-21 13:32:41 +00:00
|
|
|
# make xdg-open overrideable at runtime
|
|
|
|
"--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}"
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
cmakeFlags = [
|
2022-12-17 10:02:37 +00:00
|
|
|
"-DBUILD_UPDATER=off"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib" # expected to be prefix-relative by build code setting RPATH
|
2024-02-07 01:22:34 +00:00
|
|
|
"-DMIRALL_VERSION_SUFFIX=" # remove git suffix from version
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postBuild = ''
|
|
|
|
make doc-man
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/nextcloud/desktop/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Nextcloud themed desktop client";
|
|
|
|
homepage = "https://nextcloud.com";
|
2021-02-24 18:30:23 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ kranzes SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2022-06-16 17:23:12 +00:00
|
|
|
mainProgram = "nextcloud";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|