Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

110 lines
2.3 KiB
Nix

{
lib,
gitUpdater,
fetchFromGitHub,
qt6Packages,
stdenv,
cmake,
extra-cmake-modules,
inotify-tools,
kdePackages,
libcloudproviders,
libp11,
librsvg,
libsecret,
openssl,
pcre,
pkg-config,
sphinx,
sqlite,
xdg-utils,
libsysprof-capture,
}:
stdenv.mkDerivation rec {
pname = "nextcloud-client";
version = "3.17.2";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "nextcloud-releases";
repo = "desktop";
tag = "v${version}";
hash = "sha256-jBlQh5tHP+2LyFCnP0m/ud3nU40i5cWtUwSeM5auQX8=";
};
patches = [
./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail '"''${SYSTEMD_USER_UNIT_DIR}"' "\"$out/lib/systemd/user\""
for file in src/libsync/vfs/*/CMakeLists.txt; do
substituteInPlace $file \
--replace-fail "PLUGINDIR" "KDE_INSTALL_PLUGINDIR"
done
'';
nativeBuildInputs = [
pkg-config
cmake
extra-cmake-modules
librsvg
sphinx
qt6Packages.wrapQtAppsHook
];
buildInputs = [
inotify-tools
kdePackages.kio
libcloudproviders
libp11
libsecret
openssl
pcre
qt6Packages.qt5compat
qt6Packages.qtbase
qt6Packages.qtkeychain
qt6Packages.qtsvg
qt6Packages.qttools
qt6Packages.qtwebengine
qt6Packages.qtwebsockets
qt6Packages.qtwayland
sqlite
libsysprof-capture
];
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
# make xdg-open overridable at runtime
"--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}"
];
cmakeFlags = [
"-DBUILD_UPDATER=off"
"-DCMAKE_INSTALL_LIBDIR=lib" # expected to be prefix-relative by build code setting RPATH
"-DMIRALL_VERSION_SUFFIX=" # remove git suffix from version
];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
changelog = "https://github.com/nextcloud/desktop/releases/tag/v${version}";
description = "Desktop sync client for Nextcloud";
homepage = "https://nextcloud.com";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
kranzes
SuperSandro2000
];
platforms = lib.platforms.linux;
mainProgram = "nextcloud";
};
}