diff options
Diffstat (limited to 'flakes/mypackages/pkgs/webapps/nextcloud/apps/onlyoffice.nix')
-rw-r--r-- | flakes/mypackages/pkgs/webapps/nextcloud/apps/onlyoffice.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/flakes/mypackages/pkgs/webapps/nextcloud/apps/onlyoffice.nix b/flakes/mypackages/pkgs/webapps/nextcloud/apps/onlyoffice.nix new file mode 100644 index 0000000..e93df00 --- /dev/null +++ b/flakes/mypackages/pkgs/webapps/nextcloud/apps/onlyoffice.nix | |||
@@ -0,0 +1,21 @@ | |||
1 | { buildApp, nextcloudVersion }: | ||
2 | let | ||
3 | onlyoffice_7_9_0 = buildApp rec { | ||
4 | appName = "onlyoffice"; | ||
5 | version = "7.9.0"; | ||
6 | url = "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v${version}/${appName}.tar.gz"; | ||
7 | sha256 = "sha256-GN0edA/aVdOEDR0LF6PgG2vTcULaG9RMj2gIAoxSVAM="; | ||
8 | }; | ||
9 | onlyoffice_8_2_0 = buildApp rec { | ||
10 | appName = "onlyoffice"; | ||
11 | version = "8.2.0"; | ||
12 | url = "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v${version}/${appName}.tar.gz"; | ||
13 | sha256 = "sha256-DfZKgpkpcogy9I3A3ru0V/WR5wYWBr+wrHe+mQJBPYk="; | ||
14 | }; | ||
15 | versions = { | ||
16 | "25" = onlyoffice_7_9_0; | ||
17 | "26" = onlyoffice_7_9_0; | ||
18 | "27" = onlyoffice_8_2_0; | ||
19 | }; | ||
20 | in | ||
21 | versions."${builtins.toString nextcloudVersion}" or (throw "Unsupported version for nextcloud app onlyoffice") | ||