]>
Commit | Line | Data |
---|---|---|
1 | { buildApp, nextcloudVersion }: | |
2 | let | |
3 | groupfolders_10_0_0 = buildApp rec { | |
4 | appName = "groupfolders"; | |
5 | version = "10.0.0"; | |
6 | url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}.tar.gz"; | |
7 | sha256 = "0hgchd3d4d27hg1mvc3kffwjjdvqwmxg652i8jgd17hppm4z5abi"; | |
8 | }; | |
9 | groupfolders_11_1_0 = buildApp rec { | |
10 | appName = "groupfolders"; | |
11 | version = "11.1.0"; | |
12 | url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}.tar.gz"; | |
13 | sha256 = "0fr1m3wld206hhppf347hibwp0vm41dv864vblnl2wv33hrsrxla"; | |
14 | }; | |
15 | groupfolders_9_0_3 = buildApp rec { | |
16 | appName = "groupfolders"; | |
17 | version = "9.0.3"; | |
18 | url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}.tar.gz"; | |
19 | sha256 = "19gcd3ci2rfn7bgs0mfrmfgk2iwcmkwamckl915cbkfzwwfa4cph"; | |
20 | }; | |
21 | groupfolders_8_2_3 = buildApp rec { | |
22 | appName = "groupfolders"; | |
23 | version = "8.2.3"; | |
24 | url = "https://github.com/nextcloud-releases/${appName}/releases/download/v${version}/${appName}-${version}.tar.gz"; | |
25 | sha256 = "0vs9jgbavcl27fhp1lyqjfp2nsdzg7aiwmxjgh0fz8xrq0dnbx0v"; | |
26 | }; | |
27 | versions = { | |
28 | "20" = groupfolders_8_2_3; | |
29 | "21" = groupfolders_9_0_3; | |
30 | "22" = groupfolders_10_0_0; | |
31 | "23" = groupfolders_11_1_0; | |
32 | }; | |
33 | in | |
34 | versions."${builtins.toString nextcloudVersion}" or (throw "Unsupported version for nextcloud app groupfolders") |