diff options
Diffstat (limited to 'pkgs/webapps')
-rw-r--r-- | pkgs/webapps/default.nix | 14 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/audioplayer.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/bookmarks.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/calendar.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/contacts.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/deck.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/files_markdown.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/gpxedit.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/gpxpod.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/keeweb.nix | 12 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/music.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/notes.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/ocsms.nix | 12 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/passman.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/spreed.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/tasks.nix | 7 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/default.nix | 51 |
17 files changed, 178 insertions, 2 deletions
diff --git a/pkgs/webapps/default.nix b/pkgs/webapps/default.nix index 24c184d..6afccde 100644 --- a/pkgs/webapps/default.nix +++ b/pkgs/webapps/default.nix | |||
@@ -1,8 +1,18 @@ | |||
1 | { callPackage, mylibs }: | 1 | { callPackage, mylibs, lib }: |
2 | { | 2 | rec { |
3 | diaspora = callPackage ./diaspora { inherit mylibs; }; | 3 | diaspora = callPackage ./diaspora { inherit mylibs; }; |
4 | mastodon = callPackage ./mastodon { inherit mylibs; }; | 4 | mastodon = callPackage ./mastodon { inherit mylibs; }; |
5 | awl = callPackage ./awl {}; | 5 | awl = callPackage ./awl {}; |
6 | davical = callPackage ./davical {}; | 6 | davical = callPackage ./davical {}; |
7 | infcloud = callPackage ./infcloud {}; | 7 | infcloud = callPackage ./infcloud {}; |
8 | nextcloud = callPackage ./nextcloud {}; | ||
9 | nextcloud-apps = let | ||
10 | names = [ | ||
11 | "audioplayer" "bookmarks" "calendar" "contacts" "deck" | ||
12 | "files_markdown" "gpxedit" "gpxpod" "keeweb" "music" | ||
13 | "notes" "ocsms" "passman" "spreed" "tasks" | ||
14 | ]; | ||
15 | in | ||
16 | lib.attrsets.genAttrs names | ||
17 | (name: callPackage (./nextcloud/apps + "/${name}.nix") { buildApp = nextcloud.buildApp; }); | ||
8 | } | 18 | } |
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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | buildApp 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 }: | ||
2 | let | ||
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 | }; | ||
51 | in package | ||