aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-10-24 10:41:43 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-10-24 10:41:43 +0200
commit051f375ca96f448820f0da33a24a8ee4bb937ad2 (patch)
tree0abfe344c652a4a29a3d7008e5c7edc11a3ce7f5
parent9970dfe647ff13341d32899bd5d283f119651a48 (diff)
downloadNix-051f375ca96f448820f0da33a24a8ee4bb937ad2.tar.gz
Nix-051f375ca96f448820f0da33a24a8ee4bb937ad2.tar.zst
Nix-051f375ca96f448820f0da33a24a8ee4bb937ad2.zip
Add circles and social nextcloud apps
-rw-r--r--pkgs/webapps/nextcloud/apps/circles.nix8
-rw-r--r--pkgs/webapps/nextcloud/apps/social.nix9
-rw-r--r--pkgs/webapps/nextcloud/default.nix9
3 files changed, 22 insertions, 4 deletions
diff --git a/pkgs/webapps/nextcloud/apps/circles.nix b/pkgs/webapps/nextcloud/apps/circles.nix
new file mode 100644
index 0000000..64a4f2f
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/circles.nix
@@ -0,0 +1,8 @@
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/social.nix b/pkgs/webapps/nextcloud/apps/social.nix
new file mode 100644
index 0000000..75b790a
--- /dev/null
+++ b/pkgs/webapps/nextcloud/apps/social.nix
@@ -0,0 +1,9 @@
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/default.nix b/pkgs/webapps/nextcloud/default.nix
index 1213494..54849bf 100644
--- a/pkgs/webapps/nextcloud/default.nix
+++ b/pkgs/webapps/nextcloud/default.nix
@@ -1,10 +1,11 @@
1{ varDir ? "/var/lib/nextcloud", nextcloudVersion ? 18, otherConfig ? {}, lib, stdenv, callPackage, fetchzip, fetchurl }: 1{ varDir ? "/var/lib/nextcloud", nextcloudVersion ? 18, otherConfig ? {}, lib, stdenv, callPackage, fetchzip, fetchurl }:
2let 2let
3 appNames = [ 3 appNames = [
4 "apporder" "audioplayer" "bookmarks" "calendar" "carnet" "contacts" 4 "apporder" "audioplayer" "bookmarks" "calendar" "carnet" "circles"
5 "cookbook" "deck" "extract" "files_markdown" "files_readmemd" 5 "contacts" "cookbook" "deck" "extract" "files_markdown"
6 "flowupload" "gpxedit" "gpxpod" "keeweb" "maps" "metadata" "music" 6 "files_readmemd" "flowupload" "gpxedit" "gpxpod" "keeweb" "maps"
7 "notes" "ocsms" "passman" "polls" "spreed" "tasks" 7 "metadata" "music" "notes" "ocsms" "passman" "polls" "spreed"
8 "social" "tasks"
8 ]; 9 ];
9 allApps = lib.attrsets.genAttrs appNames 10 allApps = lib.attrsets.genAttrs appNames
10 (name: callPackage (./apps + "/${name}.nix") { inherit buildApp nextcloudVersion; }); 11 (name: callPackage (./apps + "/${name}.nix") { inherit buildApp nextcloudVersion; });