1 { buildApp, nextcloudVersion }:
3 # https://apps.nextcloud.com/apps/groupfolders
4 groupfolders_13_1_5 = buildApp rec {
5 appName = "groupfolders";
7 url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}-v${version}.tar.gz";
8 sha256 = "sha256-1yf/uSN8TRsYvK3m2pxGaXo9xxHNrI/NjyWJ8rLPQfg=";
10 groupfolders_14_0_4 = buildApp rec {
11 appName = "groupfolders";
13 url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}-v${version}.tar.gz";
14 sha256 = "sha256-QzlD8dLI6T7Sex75ZsO2F40nTrg2Ig6tHTG8cslnNME=";
16 groupfolders_15_0_2 = buildApp rec {
17 appName = "groupfolders";
19 url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}-v${version}.tar.gz";
20 sha256 = "sha256-NsTZhmY1XBKHn/1IcIp2Al7BwJzE2xoBzgyBXnmuWls=";
22 groupfolders_15_3_8 = buildApp rec {
23 appName = "groupfolders";
25 url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}-v${version}.tar.gz";
26 sha256 = "sha256-0R2FN7ba5FI95GWTUeE2JUoYIvSLIsQH/Y+VTqZQn1M=";
28 groupfolders_16_0_7 = buildApp rec {
29 appName = "groupfolders";
31 url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}-v${version}.tar.gz";
32 sha256 = "sha256-a22KP20fE+cpOuv2erl3qUu4glWArx5oISFlI8vxAQc=";
34 groupfolders_17_0_1 = buildApp rec {
35 appName = "groupfolders";
37 url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}-v${version}.tar.gz";
38 sha256 = "sha256-x9T/JoNJl6LxaPzF9IpKaGrz321nbMSAN3gfZbSapGE=";
41 "25" = groupfolders_13_1_5;
42 "26" = groupfolders_14_0_4;
43 "27" = groupfolders_15_0_2;
44 "27_2" = groupfolders_15_3_8;
45 "28" = groupfolders_16_0_7;
46 "29" = groupfolders_17_0_1;
49 versions."${builtins.toString nextcloudVersion}" or (throw "Unsupported version for nextcloud app groupfolders")