Files

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

55 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
cmake,
kdePackages,
fetchFromGitHub,
libre-graph-api-cpp-qt-client,
kdsingleapplication,
nix-update-script,
qt6,
versionCheckHook,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "opencloud-desktop";
version = "2.0.0";
src = fetchFromGitHub {
owner = "opencloud-eu";
repo = "desktop";
tag = "v${finalAttrs.version}";
hash = "sha256-NM9SspeMXu1q3tfpcFk4OuLapu/clbotJLu2u4nmAlY=";
};
buildInputs = [
kdePackages.extra-cmake-modules
qt6.qtbase
qt6.qtdeclarative
qt6.qttools
kdePackages.qtkeychain
libre-graph-api-cpp-qt-client
kdsingleapplication
];
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook
];
strictDeps = true;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/opencloudcmd";
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/opencloud-eu/desktop/releases/tag/v${finalAttrs.version}";
description = "Desktop Application for OpenCloud";
downloadPage = "https://github.com/opencloud-eu/desktop";
homepage = "https://opencloud.eu/en";
license = lib.licenses.gpl2Only;
maintainers = [ lib.maintainers.FKouhai ];
};
})