aboutsummaryrefslogtreecommitdiff
path: root/pkgs/webapps/nextcloud
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2023-10-04 01:35:06 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2023-10-04 02:11:48 +0200
commit1a64deeb894dc95e2645a75771732c6cc53a79ad (patch)
tree1b9df4838f894577a09b9b260151756272efeb53 /pkgs/webapps/nextcloud
parentfa25ffd4583cc362075cd5e1b4130f33306103f0 (diff)
downloadNix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz
Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst
Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository
Diffstat (limited to 'pkgs/webapps/nextcloud')
-rw-r--r--pkgs/webapps/nextcloud/apps/apporder.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/audioplayer.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/bookmarks.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/calendar.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/carnet.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/circles.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/contacts.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/cookbook.nix14
-rw-r--r--pkgs/webapps/nextcloud/apps/deck.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/extract.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/files_markdown.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/files_readmemd.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/flowupload.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/gpxedit.nix16
-rw-r--r--pkgs/webapps/nextcloud/apps/gpxpod.nix16
-rw-r--r--pkgs/webapps/nextcloud/apps/impersonate.nix9
-rw-r--r--pkgs/webapps/nextcloud/apps/keeweb.nix17
-rw-r--r--pkgs/webapps/nextcloud/apps/maps.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/metadata.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/music.nix9
-rw-r--r--pkgs/webapps/nextcloud/apps/notes.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/ocsms.nix12
-rw-r--r--pkgs/webapps/nextcloud/apps/passman.nix10
-rw-r--r--pkgs/webapps/nextcloud/apps/polls.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/social.nix9
-rw-r--r--pkgs/webapps/nextcloud/apps/spreed.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/tasks.nix8
-rw-r--r--pkgs/webapps/nextcloud/default.nix69
28 files changed, 0 insertions, 325 deletions
diff --git a/pkgs/webapps/nextcloud/apps/apporder.nix b/pkgs/webapps/nextcloud/apps/apporder.nix
deleted file mode 100644
index 29fd6e2..0000000
--- a/pkgs/webapps/nextcloud/apps/apporder.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 16 && nextcloudVersion <= 18;
3buildApp rec {
4 appName = "apporder";
5 version = "0.9.0";
6 url = "https://github.com/juliushaertl/apporder/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "1add4i892n4bpmpxwrsr7x99fjyj5rk6maw04iwhviqqqr28fsw6";
8}
diff --git a/pkgs/webapps/nextcloud/apps/audioplayer.nix b/pkgs/webapps/nextcloud/apps/audioplayer.nix
deleted file mode 100644
index a49776f..0000000
--- a/pkgs/webapps/nextcloud/apps/audioplayer.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 17 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "audioplayer";
5 version = "2.10.0";
6 url = "https://github.com/Rello/${appName}/releases/download/${version}/${appName}-${version}.tar.gz";
7 sha256 = "122wc05b0m8s5ksdhsiws98aqph894i7cffjkhfhq66c40a728s3";
8}
diff --git a/pkgs/webapps/nextcloud/apps/bookmarks.nix b/pkgs/webapps/nextcloud/apps/bookmarks.nix
deleted file mode 100644
index 1065c34..0000000
--- a/pkgs/webapps/nextcloud/apps/bookmarks.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 17 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "bookmarks";
5 version = "3.0.10";
6 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}-${version}.tar.gz";
7 sha256 = "0y12iqcc6yp25cisg7mg40ddx72531zdvsp2gcl37qi8vqf162ji";
8}
diff --git a/pkgs/webapps/nextcloud/apps/calendar.nix b/pkgs/webapps/nextcloud/apps/calendar.nix
deleted file mode 100644
index bc3ccea..0000000
--- a/pkgs/webapps/nextcloud/apps/calendar.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 17 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "calendar";
5 version = "2.0.3";
6 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "17pjsa657p9n1kslqkfcxd6n4ssh2yd4f5l5ww79mixfs34idbl9";
8}
diff --git a/pkgs/webapps/nextcloud/apps/carnet.nix b/pkgs/webapps/nextcloud/apps/carnet.nix
deleted file mode 100644
index 879ab17..0000000
--- a/pkgs/webapps/nextcloud/apps/carnet.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 13 && nextcloudVersion <= 18;
3buildApp rec {
4 appName = "carnet";
5 version = "0.20.0";
6 url = "https://github.com/PhieF/CarnetNextcloud/releases/download/v${version}/${appName}-nc-v${version}.tar.gz";
7 sha256 = "1hbvs88vj830xalyq8fv8xlnf7livsj1xmnjl4xgla803ch4aym8";
8}
diff --git a/pkgs/webapps/nextcloud/apps/circles.nix b/pkgs/webapps/nextcloud/apps/circles.nix
deleted file mode 100644
index 64a4f2f..0000000
--- a/pkgs/webapps/nextcloud/apps/circles.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 18 && nextcloudVersion <= 18;
3buildApp rec {
4 appName = "circles";
5 version = "0.18.9";
6 url = "https://github.com/nextcloud/circles/releases/download/v${version}/${appName}-${version}.tar.gz";
7 sha256 = "1a58zrjg4cc0igq14s5zfc5zva83mahmfr0mxvhvnasw7rwkpyzr";
8}
diff --git a/pkgs/webapps/nextcloud/apps/contacts.nix b/pkgs/webapps/nextcloud/apps/contacts.nix
deleted file mode 100644
index d80f0b5..0000000
--- a/pkgs/webapps/nextcloud/apps/contacts.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 17 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "contacts";
5 version = "3.3.0";
6 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "187avlksg4k7ci3jz4djfq8zfyq5jpvhbw2dzlp76wlppm1al4m0";
8}
diff --git a/pkgs/webapps/nextcloud/apps/cookbook.nix b/pkgs/webapps/nextcloud/apps/cookbook.nix
deleted file mode 100644
index 63cac0d..0000000
--- a/pkgs/webapps/nextcloud/apps/cookbook.nix
+++ /dev/null
@@ -1,14 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 14 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "cookbook";
5 version = "0.6.5";
6 url = "https://github.com/mrzapp/nextcloud-cookbook/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "068dxdxy9ix37970mn348blkdrrnkzad26zgyx4f5s19wm439p5j";
8 installPhase = ''
9 sed -i -e "s/application..ld..json/application[^\"|\\\\']*ld[^\"|\\\\']*json/" lib/Service/RecipeService.php
10 mkdir -p $out
11 cp -R . $out/
12 '';
13}
14
diff --git a/pkgs/webapps/nextcloud/apps/deck.nix b/pkgs/webapps/nextcloud/apps/deck.nix
deleted file mode 100644
index ec693c6..0000000
--- a/pkgs/webapps/nextcloud/apps/deck.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion == 18;
3buildApp rec {
4 appName = "deck";
5 version = "1.0.0";
6 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "13r9vd5bf75slrzhvi6bybazhh1vcx0n4a8a7hf97bxr7pq2f91j";
8}
diff --git a/pkgs/webapps/nextcloud/apps/extract.nix b/pkgs/webapps/nextcloud/apps/extract.nix
deleted file mode 100644
index daa9d2d..0000000
--- a/pkgs/webapps/nextcloud/apps/extract.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 13 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "extract";
5 version = "1.2.4";
6 url = "https://github.com/PaulLereverend/NextcloudExtract/releases/download/${version}/${appName}.tar.gz";
7 sha256 = "0f1csv0warga12a1hkgdcnhnfiwfv5z2ab3mri4frn2qlh12wyby";
8}
diff --git a/pkgs/webapps/nextcloud/apps/files_markdown.nix b/pkgs/webapps/nextcloud/apps/files_markdown.nix
deleted file mode 100644
index 5810ec9..0000000
--- a/pkgs/webapps/nextcloud/apps/files_markdown.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 16 && nextcloudVersion <= 18;
3buildApp rec {
4 appName = "files_markdown";
5 version = "2.2.0";
6 url = "https://github.com/icewind1991/${appName}/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "05f793pznkkdgmr3wfqfbhwcg8s8kcvpfxnhzyj0pbw19srls2aw";
8}
diff --git a/pkgs/webapps/nextcloud/apps/files_readmemd.nix b/pkgs/webapps/nextcloud/apps/files_readmemd.nix
deleted file mode 100644
index c9728c0..0000000
--- a/pkgs/webapps/nextcloud/apps/files_readmemd.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 16 && nextcloudVersion <= 18;
3buildApp rec {
4 appName = "files_readmemd";
5 version = "1.1.4";
6 url = "https://gitlab.univ-nantes.fr/uncloud/files_readmemd/-/wikis/uploads/e1d280e855f37e5f0a421c757868113c/${appName}.tar.gz";
7 sha256 = "1sfaghbyzfv3hg5vhj1nprb85zsl6lcr2x88ks6l9ndv49nfbvm9";
8}
diff --git a/pkgs/webapps/nextcloud/apps/flowupload.nix b/pkgs/webapps/nextcloud/apps/flowupload.nix
deleted file mode 100644
index 516ee32..0000000
--- a/pkgs/webapps/nextcloud/apps/flowupload.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 15 && nextcloudVersion <= 18;
3buildApp rec {
4 appName = "flowupload";
5 version = "0.1.8";
6 url = "https://github.com/e-alfred/${appName}/releases/download/${version}/${appName}-${version}.tar.gz";
7 sha256 = "0llg5cr4fgqg512znp9bga77y7vdsi2pgsyl4m3a54c557zyjah3";
8}
diff --git a/pkgs/webapps/nextcloud/apps/gpxedit.nix b/pkgs/webapps/nextcloud/apps/gpxedit.nix
deleted file mode 100644
index cd3e878..0000000
--- a/pkgs/webapps/nextcloud/apps/gpxedit.nix
+++ /dev/null
@@ -1,16 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 14 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "gpxedit";
5 version = "0.0.13";
6 url = "https://gitlab.com/eneiluj/gpxedit-oc/wikis/uploads/a7c638d1b038514d07bb5c787b6e7961/${appName}-${version}.tar.gz";
7 sha256 = "1b15iqaq8fj3khpx3lh0fyqkhmj6x44fc59pg3cp3jrh3bpg0534";
8 otherConfig = {
9 mimetypealiases = {
10 "application/gpx+xml" = "gpx";
11 };
12 mimetypemapping = {
13 "gpx" = ["application/gpx+xml"];
14 };
15 };
16}
diff --git a/pkgs/webapps/nextcloud/apps/gpxpod.nix b/pkgs/webapps/nextcloud/apps/gpxpod.nix
deleted file mode 100644
index 0750144..0000000
--- a/pkgs/webapps/nextcloud/apps/gpxpod.nix
+++ /dev/null
@@ -1,16 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 14 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "gpxpod";
5 version = "4.2.1";
6 url = "https://gitlab.com/eneiluj/gpxpod-oc/wikis/uploads/0361f9dc50633f0f39d929442935435c/${appName}-${version}.tar.gz";
7 sha256 = "0ycpychq6g8axdprvd0ahgdy2pwfdbfyf1pxk4cprr4ab986aq1x";
8 otherConfig = {
9 mimetypealiases = {
10 "application/gpx+xml" = "gpx";
11 };
12 mimetypemapping = {
13 "gpx" = ["application/gpx+xml"];
14 };
15 };
16}
diff --git a/pkgs/webapps/nextcloud/apps/impersonate.nix b/pkgs/webapps/nextcloud/apps/impersonate.nix
deleted file mode 100644
index 66cc893..0000000
--- a/pkgs/webapps/nextcloud/apps/impersonate.nix
+++ /dev/null
@@ -1,9 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 18 && nextcloudVersion < 19;
3buildApp rec {
4 appName = "impersonate";
5 version = "1.5.2";
6 url = "https://github.com/nextcloud/impersonate/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "03fm9d2p6ap9gyiw5anmlwsdmiyklrkpdgchfx2zfgxn38pjrz6d";
8}
9
diff --git a/pkgs/webapps/nextcloud/apps/keeweb.nix b/pkgs/webapps/nextcloud/apps/keeweb.nix
deleted file mode 100644
index 4ea1399..0000000
--- a/pkgs/webapps/nextcloud/apps/keeweb.nix
+++ /dev/null
@@ -1,17 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 11 && nextcloudVersion <= 18;
3buildApp rec {
4 appName = "keeweb";
5 version = "0.6.2";
6 url = "https://github.com/jhass/nextcloud-keeweb/releases/download/v${version}/${appName}-${version}.tar.gz";
7 sha256 = "067801qz0fcfvmb14ja1ringzk53j1wp7ys2fl7lnlhf45r81vxx";
8 installPhase = ''
9 mkdir -p $out
10 cp -R . $out/
11 '';
12 otherConfig = {
13 mimetypemapping = {
14 "kdbx" = ["application/x-kdbx"];
15 };
16 };
17}
diff --git a/pkgs/webapps/nextcloud/apps/maps.nix b/pkgs/webapps/nextcloud/apps/maps.nix
deleted file mode 100644
index 898df6c..0000000
--- a/pkgs/webapps/nextcloud/apps/maps.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 16 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "maps";
5 version = "0.1.6";
6 url = "https://github.com/nextcloud/maps/releases/download/v${version}/${appName}-${version}.tar.gz";
7 sha256 = "1yh5h96c91lgz58zcm7zdpblvsc6c6nflx8pldfds102x292mprk";
8}
diff --git a/pkgs/webapps/nextcloud/apps/metadata.nix b/pkgs/webapps/nextcloud/apps/metadata.nix
deleted file mode 100644
index 2d62f53..0000000
--- a/pkgs/webapps/nextcloud/apps/metadata.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 13 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "metadata";
5 version = "0.11.1";
6 url = "https://github.com/gino0631/nextcloud-metadata/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "11napkv5s29xk1gmbfvy610ab1kc06qxqzw606ix5x0d1x4m3h0c";
8}
diff --git a/pkgs/webapps/nextcloud/apps/music.nix b/pkgs/webapps/nextcloud/apps/music.nix
deleted file mode 100644
index e430dd9..0000000
--- a/pkgs/webapps/nextcloud/apps/music.nix
+++ /dev/null
@@ -1,9 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 9 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "music";
5 version = "0.14.1";
6 url = "https://github.com/owncloud/music/releases/download/v${version}/${appName}.zip";
7 zip = true;
8 sha256 = "06svn24qix0nbikwi0kxnli402vq99851bn5ljcsm10r74bnlw83";
9}
diff --git a/pkgs/webapps/nextcloud/apps/notes.nix b/pkgs/webapps/nextcloud/apps/notes.nix
deleted file mode 100644
index 7a06bbc..0000000
--- a/pkgs/webapps/nextcloud/apps/notes.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 16 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "notes";
5 version = "3.3.0";
6 url = "https://github.com/nextcloud/${appName}/releases/download/${version}/${appName}.tar.gz";
7 sha256 = "03k0ijma7sccwqq9ch3bvgbg9kxr2wk0bmkxzxrc9in1d40d3k7f";
8}
diff --git a/pkgs/webapps/nextcloud/apps/ocsms.nix b/pkgs/webapps/nextcloud/apps/ocsms.nix
deleted file mode 100644
index aee1ff2..0000000
--- a/pkgs/webapps/nextcloud/apps/ocsms.nix
+++ /dev/null
@@ -1,12 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 16 && nextcloudVersion <= 18;
3buildApp rec {
4 appName = "ocsms";
5 version = "2.1.7";
6 url = "https://github.com/nextcloud/${appName}/releases/download/${version}/${appName}-${version}.tar.gz";
7 sha256 = "1pfdzq16nbh4wfmkmif0dxacxg0fy4n4cp2d1hbq9k2z9awcx1vh";
8 installPhase = ''
9 mkdir -p $out
10 cp -R . $out/
11 '';
12}
diff --git a/pkgs/webapps/nextcloud/apps/passman.nix b/pkgs/webapps/nextcloud/apps/passman.nix
deleted file mode 100644
index 2de4882..0000000
--- a/pkgs/webapps/nextcloud/apps/passman.nix
+++ /dev/null
@@ -1,10 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 17 && nextcloudVersion <= 18;
3buildApp rec {
4 # FIXME: it creates a /settings/user/additional setting url which
5 # doesn’t work
6 appName = "passman";
7 version = "2.3.5";
8 url = "https://releases.passman.cc/${appName}_${version}.tar.gz";
9 sha256 = "05gc288n43c7dhmq1jqfn8cfw7sycwdfhn36j8rh8nbx1irldbjn";
10}
diff --git a/pkgs/webapps/nextcloud/apps/polls.nix b/pkgs/webapps/nextcloud/apps/polls.nix
deleted file mode 100644
index 69e1102..0000000
--- a/pkgs/webapps/nextcloud/apps/polls.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 16 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "polls";
5 version = "1.4.3";
6 url = "https://github.com/nextcloud/polls/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "07l5x5xblk6w8f6mqz3a5hjpry8qc3zgqi49z6bp5ipnzj0s6wm4";
8}
diff --git a/pkgs/webapps/nextcloud/apps/social.nix b/pkgs/webapps/nextcloud/apps/social.nix
deleted file mode 100644
index 75b790a..0000000
--- a/pkgs/webapps/nextcloud/apps/social.nix
+++ /dev/null
@@ -1,9 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 17 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "social";
5 version = "0.3.1";
6 url = "https://github.com/nextcloud/social/releases/download/v${version}/${appName}-${version}.tar.gz";
7 sha256 = "03hh6vr34p33dphrjqmc7s8mvsk5n7dl817j8qkf75203y8szhdy";
8}
9
diff --git a/pkgs/webapps/nextcloud/apps/spreed.nix b/pkgs/webapps/nextcloud/apps/spreed.nix
deleted file mode 100644
index b52c8c5..0000000
--- a/pkgs/webapps/nextcloud/apps/spreed.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion == 18;
3buildApp rec {
4 appName = "spreed";
5 version = "8.0.8";
6 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}-${version}.tar.gz";
7 sha256 = "19szk61ixzzrabs63l2fihx7k4f6a8k4kdzpa0xxzv5w9ssqjhbj";
8}
diff --git a/pkgs/webapps/nextcloud/apps/tasks.nix b/pkgs/webapps/nextcloud/apps/tasks.nix
deleted file mode 100644
index a2de465..0000000
--- a/pkgs/webapps/nextcloud/apps/tasks.nix
+++ /dev/null
@@ -1,8 +0,0 @@
1{ buildApp, nextcloudVersion }:
2assert nextcloudVersion >= 16 && nextcloudVersion <= 19;
3buildApp rec {
4 appName = "tasks";
5 version = "0.12.2";
6 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "092fg7dpx69jp5z0ka14ay6bnfdcnjq8zk2gc3rwpzc3llpdnqph";
8}
diff --git a/pkgs/webapps/nextcloud/default.nix b/pkgs/webapps/nextcloud/default.nix
deleted file mode 100644
index 5017fd2..0000000
--- a/pkgs/webapps/nextcloud/default.nix
+++ /dev/null
@@ -1,69 +0,0 @@
1{ varDir ? "/var/lib/nextcloud", nextcloudVersion ? 18, otherConfig ? {}, lib, stdenv, callPackage, fetchzip, fetchurl }:
2let
3 appNames = [
4 "apporder" "audioplayer" "bookmarks" "calendar" "carnet" "circles"
5 "contacts" "cookbook" "deck" "extract" "files_markdown"
6 "files_readmemd" "flowupload" "gpxedit" "gpxpod" "impersonate"
7 "keeweb" "maps" "metadata" "music" "notes" "ocsms" "passman" "polls"
8 "spreed" "social" "tasks"
9 ];
10 allApps = lib.attrsets.genAttrs appNames
11 (name: callPackage (./apps + "/${name}.nix") { inherit buildApp nextcloudVersion; });
12 buildApp = { appName, version, url, sha256, zip ? false, otherConfig ? {}, installPhase ? "mkdir -p $out && cp -R . $out/" }:
13 stdenv.mkDerivation rec {
14 name = "nextcloud-app-${appName}-${version}";
15 inherit version;
16 phases = "unpackPhase installPhase";
17 inherit installPhase;
18 src = (if zip then fetchzip else fetchurl) { inherit url sha256; };
19 passthru = {
20 inherit appName otherConfig;
21 };
22 };
23 toPassthru = pkg: apps: otherConfig: {
24 inherit apps otherConfig allApps buildApp varDir;
25 withApps = withApps pkg;
26 };
27 withApps = pkg: toApps:
28 let
29 apps = toApps allApps;
30 toInstallApp = n: ''
31 ln -sf ${n} $out/apps/${n.appName}
32 '';
33 zipped = lib.attrsets.zipAttrs ([pkg.otherConfig or {}] ++ map (v: v.otherConfig) apps);
34 appConfigs = with lib.attrsets; with lib.lists; {
35 mimetypealiases = foldr (h: prev: prev // h) {} (zipped.mimetypealiases or []);
36 mimetypemapping = mapAttrs (_: v: unique (flatten v)) (zipAttrs (zipped.mimetypemapping or []));
37 };
38 newNextcloud = pkg.overrideAttrs(old: {
39 installPhase = old.installPhase + "\n" + builtins.concatStringsSep "\n" (map toInstallApp apps);
40 passthru = toPassthru newNextcloud (pkg.apps ++ apps) appConfigs;
41 });
42 in newNextcloud;
43 package = stdenv.mkDerivation rec {
44 name = "nextcloud-${version}";
45 version = "${builtins.toString nextcloudVersion}.0.4";
46
47 src = fetchurl {
48 url = "https://download.nextcloud.com/server/releases/${name}.tar.bz2";
49 sha256 = "0aa3f4xbkzacfw0h9aic0ywk5mqlwka83qaszizj8lmk68kf3n7s";
50 };
51
52 installPhase = ''
53 mkdir -p $out/
54 cp -R . $out/
55 rm -r $out/config
56 '' + lib.optionalString (varDir != null) ''
57 ln -sf ${varDir}/config $out/config
58 '';
59
60 passthru = toPassthru package [] otherConfig;
61 meta = {
62 description = "Sharing solution for files, calendars, contacts and more";
63 homepage = https://nextcloud.com;
64 maintainers = with lib.maintainers; [ schneefux bachp globin fpletz ];
65 license = lib.licenses.agpl3Plus;
66 platforms = with lib.platforms; unix;
67 };
68 };
69in package