1{
2 lib,
3 cmake,
4 kdePackages,
5 fetchFromGitHub,
6 libre-graph-api-cpp-qt-client,
7 kdsingleapplication,
8 nix-update-script,
9 qt6,
10 versionCheckHook,
11 stdenv,
12}:
13stdenv.mkDerivation (finalAttrs: {
14 pname = "opencloud-desktop";
15 version = "2.0.0";
16 src = fetchFromGitHub {
17 owner = "opencloud-eu";
18 repo = "desktop";
19 tag = "v${finalAttrs.version}";
20 hash = "sha256-NM9SspeMXu1q3tfpcFk4OuLapu/clbotJLu2u4nmAlY=";
21 };
22
23 buildInputs = [
24 kdePackages.extra-cmake-modules
25 qt6.qtbase
26 qt6.qtdeclarative
27 qt6.qttools
28 kdePackages.qtkeychain
29 libre-graph-api-cpp-qt-client
30 kdsingleapplication
31 ];
32
33 nativeBuildInputs = [
34 cmake
35 qt6.wrapQtAppsHook
36 ];
37
38 strictDeps = true;
39
40 doInstallCheck = true;
41 nativeInstallCheckInputs = [ versionCheckHook ];
42 versionCheckProgram = "${placeholder "out"}/bin/opencloudcmd";
43
44 passthru.updateScript = nix-update-script { };
45
46 meta = {
47 changelog = "https://github.com/opencloud-eu/desktop/releases/tag/v${finalAttrs.version}";
48 description = "Desktop Application for OpenCloud";
49 downloadPage = "https://github.com/opencloud-eu/desktop";
50 homepage = "https://opencloud.eu/en";
51 license = lib.licenses.gpl2Only;
52 maintainers = [ lib.maintainers.FKouhai ];
53 };
54})