aboutsummaryrefslogtreecommitdiff
path: root/pkgs/webapps/nextcloud
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-05 19:06:39 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-05 19:06:39 +0200
commit0ede7366409e14482017f70f1efc53426279b8d0 (patch)
tree66530ab7f317238c97169e3bdc5a85c88acc0ec0 /pkgs/webapps/nextcloud
parent9c5fe7b7064afb70dd0b8eb78af745eff84bb2e5 (diff)
downloadNix-0ede7366409e14482017f70f1efc53426279b8d0.tar.gz
Nix-0ede7366409e14482017f70f1efc53426279b8d0.tar.zst
Nix-0ede7366409e14482017f70f1efc53426279b8d0.zip
Move nextcloud and apps to pkgs
Diffstat (limited to 'pkgs/webapps/nextcloud')
-rw-r--r--pkgs/webapps/nextcloud/apps/audioplayer.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/bookmarks.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/calendar.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/contacts.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/deck.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/files_markdown.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/gpxedit.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/gpxpod.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/keeweb.nix12
-rw-r--r--pkgs/webapps/nextcloud/apps/music.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/notes.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/ocsms.nix12
-rw-r--r--pkgs/webapps/nextcloud/apps/passman.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/spreed.nix7
-rw-r--r--pkgs/webapps/nextcloud/apps/tasks.nix7
-rw-r--r--pkgs/webapps/nextcloud/default.nix51
16 files changed, 166 insertions, 0 deletions
diff --git a/pkgs/webapps/nextcloud/apps/audioplayer.nix b/pkgs/webapps/nextcloud/apps/audioplayer.nix
new file mode 100644
index 0000000..e8cd307
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/audioplayer.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "audioplayer";
4 version = "2.6.0";
5 url = "https://github.com/Rello/${appName}/releases/download/${version}/${appName}-${version}.tar.gz";
6 sha256 = "08apm7dhnljagcvq8b1dsqcck4nqwmz60bf3mx44xvbhiaq6nim4";
7}
diff --git a/pkgs/webapps/nextcloud/apps/bookmarks.nix b/pkgs/webapps/nextcloud/apps/bookmarks.nix
new file mode 100644
index 0000000..3667c16
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/bookmarks.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "bookmarks";
4 version = "0.16.2";
5 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}-${version}.tar.gz";
6 sha256 = "0ghk71iyk5xlqsfahg0d0lpp9lparpdnv2qx11a7j64pc9gzcfl4";
7}
diff --git a/pkgs/webapps/nextcloud/apps/calendar.nix b/pkgs/webapps/nextcloud/apps/calendar.nix
new file mode 100644
index 0000000..1162f57
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/calendar.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "calendar";
4 version = "1.6.4";
5 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
6 sha256 = "00dijvcvy7snsjslfbyzvpp9anhms22zp1f0zkj89ln33jmana63";
7}
diff --git a/pkgs/webapps/nextcloud/apps/contacts.nix b/pkgs/webapps/nextcloud/apps/contacts.nix
new file mode 100644
index 0000000..f553210
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/contacts.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "contacts";
4 version = "3.0.3";
5 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
6 sha256 = "026hfigfzqb1cvq6a7mg9656nkm21c19a6ipqzgv00ycf38qyk95";
7}
diff --git a/pkgs/webapps/nextcloud/apps/deck.nix b/pkgs/webapps/nextcloud/apps/deck.nix
new file mode 100644
index 0000000..9b4e8c4
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/deck.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "deck";
4 version = "0.5.2";
5 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
6 sha256 = "1kygzixxdkp3dbma009p3pw0fj8wgcqcv39n7pay78lh6zi3nic7";
7}
diff --git a/pkgs/webapps/nextcloud/apps/files_markdown.nix b/pkgs/webapps/nextcloud/apps/files_markdown.nix
new file mode 100644
index 0000000..9ccfe18
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/files_markdown.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "files_markdown";
4 version = "2.0.5";
5 url = "https://github.com/icewind1991/${appName}/releases/download/v${version}/${appName}.tar.gz";
6 sha256 = "1dzvy4c6vff2qmkwqw13dx92xdkafaxgnipswjw44mh0ncc2n9ym";
7}
diff --git a/pkgs/webapps/nextcloud/apps/gpxedit.nix b/pkgs/webapps/nextcloud/apps/gpxedit.nix
new file mode 100644
index 0000000..afd2410
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/gpxedit.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "gpxedit";
4 version = "0.0.10";
5 url = "https://gitlab.com/eneiluj/gpxedit-oc/wikis/uploads/33d187268c5f6f6a55350d656305701c/${appName}-${version}.tar.gz";
6 sha256 = "0ynpaxm0xhvcj8xax6rm1w0p6j57wbqidhi7bhn268n483gwl2sw";
7}
diff --git a/pkgs/webapps/nextcloud/apps/gpxpod.nix b/pkgs/webapps/nextcloud/apps/gpxpod.nix
new file mode 100644
index 0000000..c2e9a80
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/gpxpod.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "gpxpod";
4 version = "3.0.1";
5 url = "https://gitlab.com/eneiluj/gpxpod-oc/wikis/uploads/3f5fbc895de15f11f90582c4872839dc/${appName}-${version}.tar.gz";
6 sha256 = "1g3602phrdpybamr4bnk5niv1znmwp19lqyw6d8yxmc84lg99dny";
7}
diff --git a/pkgs/webapps/nextcloud/apps/keeweb.nix b/pkgs/webapps/nextcloud/apps/keeweb.nix
new file mode 100644
index 0000000..cff6bca
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/keeweb.nix
@@ -0,0 +1,12 @@
1{ buildApp }:
2buildApp rec {
3 appName = "keeweb";
4 version = "0.4.0";
5 url = "https://github.com/jhass/nextcloud-keeweb/releases/download/v${version}/${appName}-${version}.tar.gz";
6 sha256 = "0453kkb0a8vfivmibpwpx4bvhyn64jhns6cdfjacmnvbm6d75nj1";
7 installPhase = ''
8 mkdir -p $out
9 cp -R . $out/
10 sed -i -e 's/max-version="12"/max-version="16"/' $out/appinfo/info.xml
11 '';
12}
diff --git a/pkgs/webapps/nextcloud/apps/music.nix b/pkgs/webapps/nextcloud/apps/music.nix
new file mode 100644
index 0000000..4cb1c9b
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/music.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "music";
4 version = "0.9.3";
5 url = "https://github.com/owncloud/${appName}/archive/v${version}.tar.gz";
6 sha256 = "1x4c2v8hnm9yi3fzjglfwd2brzn99v8zavgfczc5jfj30v3n555z";
7}
diff --git a/pkgs/webapps/nextcloud/apps/notes.nix b/pkgs/webapps/nextcloud/apps/notes.nix
new file mode 100644
index 0000000..1edb5f4
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/notes.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "notes";
4 version = "2.5.1";
5 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
6 sha256 = "1albzqqsdirzyw8vhvs7r0qm2wqp8vm9vmxm4crhncd85bk01hmh";
7}
diff --git a/pkgs/webapps/nextcloud/apps/ocsms.nix b/pkgs/webapps/nextcloud/apps/ocsms.nix
new file mode 100644
index 0000000..a1d5e0e
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/ocsms.nix
@@ -0,0 +1,12 @@
1{ buildApp }:
2buildApp rec {
3 appName = "ocsms";
4 version = "2.1.1";
5 url = "https://github.com/nextcloud/${appName}/releases/download/${version}/${appName}-${version}.tar.gz";
6 sha256 = "0sgfbmy1c8rgzjvf9snc7rzgp8aqsc65zfwgi6qcsf2g6gam5n7a";
7 installPhase = ''
8 sed -i -e "/addScript.*devel/d" -e "s@//\(.*addScript.*app.min\)@\1@" templates/main.php
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
new file mode 100644
index 0000000..869acb3
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/passman.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "passman";
4 version = "2.2.1";
5 url = "https://releases.passman.cc/${appName}_${version}.tar.gz";
6 sha256 = "064pq9d0pl3y1vcywpi19fg47zy7j4h0jaxy6jklwzwcrmzagbka";
7}
diff --git a/pkgs/webapps/nextcloud/apps/spreed.nix b/pkgs/webapps/nextcloud/apps/spreed.nix
new file mode 100644
index 0000000..dba9bae
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/spreed.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "spreed";
4 version = "5.0.2";
5 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}-${version}.tar.gz";
6 sha256 = "0z9zhpkq485lhwirc2f04427rd47hzv0r8frz72dkrszb037qjvv";
7}
diff --git a/pkgs/webapps/nextcloud/apps/tasks.nix b/pkgs/webapps/nextcloud/apps/tasks.nix
new file mode 100644
index 0000000..950bd2d
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/tasks.nix
@@ -0,0 +1,7 @@
1{ buildApp }:
2buildApp rec {
3 appName = "tasks";
4 version = "0.9.8";
5 url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
6 sha256 = "089m124lfsfk09fqj50x9n7zndq97jp5afgb8s001rpmzym4g6ny";
7}
diff --git a/pkgs/webapps/nextcloud/default.nix b/pkgs/webapps/nextcloud/default.nix
new file mode 100644
index 0000000..c3471fe
--- /dev/null
+++ b/pkgs/webapps/nextcloud/default.nix
@@ -0,0 +1,51 @@
1{ varDir ? "/var/lib/nextcloud", lib, stdenv, fetchurl }:
2let
3 buildApp = { appName, version, url, sha256, installPhase ? "mkdir -p $out && cp -R . $out/" }:
4 stdenv.mkDerivation rec {
5 name = "nextcloud-app-${appName}-${version}";
6 inherit version;
7 phases = "unpackPhase installPhase";
8 inherit installPhase;
9 src = fetchurl { inherit url sha256; };
10 passthru.appName = appName;
11 };
12 withApps = apps: package.overrideAttrs(old: {
13 name = "${old.name}-with-apps";
14
15 installPhase = old.installPhase + (
16 builtins.concatStringsSep "\n" (
17 map (value: "ln -sf ${value} $out/apps/${value.appName}") apps
18 ));
19 passthru.apps = apps;
20 passthru.withApps = moreApps: old.withApps (moreApps ++ apps);
21 });
22
23 package = stdenv.mkDerivation rec {
24 name = "nextcloud-${version}";
25 version = "15.0.4";
26
27 src = fetchurl {
28 url = "https://download.nextcloud.com/server/releases/${name}.tar.bz2";
29 sha256 = "0xwg7p31y1pkjk1pzygh9shpqxnfkafrab52j7in7xblq53v0zgq";
30 };
31
32 installPhase = ''
33 mkdir -p $out/
34 cp -R . $out/
35 rm -r $out/config
36 ln -sf ${varDir}/config $out/config
37 '';
38
39 passthru = {
40 apps = [];
41 inherit buildApp withApps varDir;
42 };
43 meta = {
44 description = "Sharing solution for files, calendars, contacts and more";
45 homepage = https://nextcloud.com;
46 maintainers = with lib.maintainers; [ schneefux bachp globin fpletz ];
47 license = lib.licenses.agpl3Plus;
48 platforms = with lib.platforms; unix;
49 };
50 };
51in package