diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-08 02:18:20 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-08 10:32:47 +0200 |
commit | c4216ddb8bedd0b75149c039bd5dc86c3d6a9b7f (patch) | |
tree | e417ef522e87200dbe81673e71591606411a7889 | |
parent | 65b715d7e4a47f00fe0fca6c4b0eaff19e874d38 (diff) | |
download | Nix-c4216ddb8bedd0b75149c039bd5dc86c3d6a9b7f.tar.gz Nix-c4216ddb8bedd0b75149c039bd5dc86c3d6a9b7f.tar.zst Nix-c4216ddb8bedd0b75149c039bd5dc86c3d6a9b7f.zip |
Upgrade nextcloud to 18
-rw-r--r-- | modules/private/websites/tools/cloud/default.nix | 14 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/deck.nix | 6 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/apps/spreed.nix | 6 | ||||
-rw-r--r-- | pkgs/webapps/nextcloud/default.nix | 6 |
4 files changed, 17 insertions, 15 deletions
diff --git a/modules/private/websites/tools/cloud/default.nix b/modules/private/websites/tools/cloud/default.nix index 3b6a871..e6f8ecb 100644 --- a/modules/private/websites/tools/cloud/default.nix +++ b/modules/private/websites/tools/cloud/default.nix | |||
@@ -79,8 +79,10 @@ in { | |||
79 | user = "wwwrun"; | 79 | user = "wwwrun"; |
80 | group = "wwwrun"; | 80 | group = "wwwrun"; |
81 | permissions = "0600"; | 81 | permissions = "0600"; |
82 | # This file is not actually included, see activationScript below | ||
82 | text = '' | 83 | text = '' |
83 | <?php | 84 | <?php |
85 | include('${nextcloud}/version.php'); | ||
84 | $CONFIG = array ( | 86 | $CONFIG = array ( |
85 | // FIXME: change this value when nextcloud starts getting slow | 87 | // FIXME: change this value when nextcloud starts getting slow |
86 | 'instanceid' => '${env.instance_id}1', | 88 | 'instanceid' => '${env.instance_id}1', |
@@ -88,7 +90,7 @@ in { | |||
88 | 'passwordsalt' => '${env.password_salt}', | 90 | 'passwordsalt' => '${env.password_salt}', |
89 | 'debug' => false, | 91 | 'debug' => false, |
90 | 'dbtype' => 'pgsql', | 92 | 'dbtype' => 'pgsql', |
91 | 'version' => '16.0.0.9', | 93 | 'version' => implode($OC_Version, '.'), |
92 | 'dbname' => '${env.postgresql.database}', | 94 | 'dbname' => '${env.postgresql.database}', |
93 | 'dbhost' => '${env.postgresql.socket}', | 95 | 'dbhost' => '${env.postgresql.socket}', |
94 | 'dbtableprefix' => 'oc_', | 96 | 'dbtableprefix' => 'oc_', |
@@ -139,8 +141,8 @@ in { | |||
139 | cd ${nextcloud} | 141 | cd ${nextcloud} |
140 | NEXTCLOUD_CONFIG_DIR="${nextcloud}/config" \ | 142 | NEXTCLOUD_CONFIG_DIR="${nextcloud}/config" \ |
141 | exec \ | 143 | exec \ |
142 | sudo -u wwwrun ${pkgs.php73}/bin/php \ | 144 | sudo -u wwwrun ${pkgs.php74}/bin/php \ |
143 | -c ${pkgs.php73}/etc/php.ini \ | 145 | -c ${pkgs.php74}/etc/php.ini \ |
144 | occ $* | 146 | occ $* |
145 | ''; | 147 | ''; |
146 | in [ occ ]; | 148 | in [ occ ]; |
@@ -156,7 +158,7 @@ in { | |||
156 | ${builtins.concatStringsSep "\n" (lib.attrsets.mapAttrsToList (n: v: | 158 | ${builtins.concatStringsSep "\n" (lib.attrsets.mapAttrsToList (n: v: |
157 | "install -D -m 0644 -o wwwrun -g wwwrun -T ${v} ${varDir}/config/${n}.json" | 159 | "install -D -m 0644 -o wwwrun -g wwwrun -T ${v} ${varDir}/config/${n}.json" |
158 | ) confs)} | 160 | ) confs)} |
159 | install -D -m 0600 -o wwwrun -g wwwrun -T /var/secrets/webapps/tools-nextcloud ${varDir}/config/config.php | 161 | #install -D -m 0600 -o wwwrun -g wwwrun -T /var/secrets/webapps/tools-nextcloud ${varDir}/config/config.php |
160 | ''; | 162 | ''; |
161 | }; | 163 | }; |
162 | # FIXME: add a warning when config.php changes | 164 | # FIXME: add a warning when config.php changes |
@@ -169,7 +171,7 @@ in { | |||
169 | user = "wwwrun"; | 171 | user = "wwwrun"; |
170 | group = "wwwrun"; | 172 | group = "wwwrun"; |
171 | settings = phpFpm.pool; | 173 | settings = phpFpm.pool; |
172 | phpPackage = pkgs.php73.withExtensions(e: pkgs.php73.enabledExtensions ++ [ e.redis e.apcu e.opcache ]); | 174 | phpPackage = pkgs.php74.withExtensions(e: pkgs.php74.enabledExtensions ++ [ e.redis e.apcu e.opcache ]); |
173 | }; | 175 | }; |
174 | 176 | ||
175 | services.cron = { | 177 | services.cron = { |
@@ -179,7 +181,7 @@ in { | |||
179 | #! ${pkgs.stdenv.shell} | 181 | #! ${pkgs.stdenv.shell} |
180 | export LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive | 182 | export LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive |
181 | export PATH=/run/wrappers/bin:$PATH | 183 | export PATH=/run/wrappers/bin:$PATH |
182 | ${pkgs.php73}/bin/php -d memory_limit=512M -f ${nextcloud}/cron.php | 184 | ${pkgs.php74}/bin/php -d memory_limit=512M -f ${nextcloud}/cron.php |
183 | ''; | 185 | ''; |
184 | in [ | 186 | in [ |
185 | '' | 187 | '' |
diff --git a/pkgs/webapps/nextcloud/apps/deck.nix b/pkgs/webapps/nextcloud/apps/deck.nix index f4c4f94..ec693c6 100644 --- a/pkgs/webapps/nextcloud/apps/deck.nix +++ b/pkgs/webapps/nextcloud/apps/deck.nix | |||
@@ -1,8 +1,8 @@ | |||
1 | { buildApp, nextcloudVersion }: | 1 | { buildApp, nextcloudVersion }: |
2 | assert nextcloudVersion == 17; | 2 | assert nextcloudVersion == 18; |
3 | buildApp rec { | 3 | buildApp rec { |
4 | appName = "deck"; | 4 | appName = "deck"; |
5 | version = "0.8.2"; | 5 | version = "1.0.0"; |
6 | url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz"; | 6 | url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz"; |
7 | sha256 = "0n4z1wbshahhvh3r532brzg0hgsyaf5djxpxg6hmma4ycrn4s358"; | 7 | sha256 = "13r9vd5bf75slrzhvi6bybazhh1vcx0n4a8a7hf97bxr7pq2f91j"; |
8 | } | 8 | } |
diff --git a/pkgs/webapps/nextcloud/apps/spreed.nix b/pkgs/webapps/nextcloud/apps/spreed.nix index d6bd938..b52c8c5 100644 --- a/pkgs/webapps/nextcloud/apps/spreed.nix +++ b/pkgs/webapps/nextcloud/apps/spreed.nix | |||
@@ -1,8 +1,8 @@ | |||
1 | { buildApp, nextcloudVersion }: | 1 | { buildApp, nextcloudVersion }: |
2 | assert nextcloudVersion == 17; | 2 | assert nextcloudVersion == 18; |
3 | buildApp rec { | 3 | buildApp rec { |
4 | appName = "spreed"; | 4 | appName = "spreed"; |
5 | version = "7.0.3"; | 5 | version = "8.0.8"; |
6 | url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}-${version}.tar.gz"; | 6 | url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}-${version}.tar.gz"; |
7 | sha256 = "09s5wabb516sfrq765hp6viag78xg349glwdxayjkbygkif0hw82"; | 7 | sha256 = "19szk61ixzzrabs63l2fihx7k4f6a8k4kdzpa0xxzv5w9ssqjhbj"; |
8 | } | 8 | } |
diff --git a/pkgs/webapps/nextcloud/default.nix b/pkgs/webapps/nextcloud/default.nix index fecb3a7..3d5e114 100644 --- a/pkgs/webapps/nextcloud/default.nix +++ b/pkgs/webapps/nextcloud/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { varDir ? "/var/lib/nextcloud", nextcloudVersion ? 17, otherConfig ? {}, lib, stdenv, callPackage, fetchurl }: | 1 | { varDir ? "/var/lib/nextcloud", nextcloudVersion ? 18, otherConfig ? {}, lib, stdenv, callPackage, fetchurl }: |
2 | let | 2 | let |
3 | appNames = [ | 3 | appNames = [ |
4 | "apporder" "audioplayer" "bookmarks" "calendar" "carnet" "contacts" | 4 | "apporder" "audioplayer" "bookmarks" "calendar" "carnet" "contacts" |
@@ -41,11 +41,11 @@ let | |||
41 | in newNextcloud; | 41 | in newNextcloud; |
42 | package = stdenv.mkDerivation rec { | 42 | package = stdenv.mkDerivation rec { |
43 | name = "nextcloud-${version}"; | 43 | name = "nextcloud-${version}"; |
44 | version = "${builtins.toString nextcloudVersion}.0.6"; | 44 | version = "${builtins.toString nextcloudVersion}.0.4"; |
45 | 45 | ||
46 | src = fetchurl { | 46 | src = fetchurl { |
47 | url = "https://download.nextcloud.com/server/releases/${name}.tar.bz2"; | 47 | url = "https://download.nextcloud.com/server/releases/${name}.tar.bz2"; |
48 | sha256 = "0qq7lkgzsn1zakfym5bjqzpcisxmgfcdd927ddqlhddy3zvgxrxx"; | 48 | sha256 = "0aa3f4xbkzacfw0h9aic0ywk5mqlwka83qaszizj8lmk68kf3n7s"; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | installPhase = '' | 51 | installPhase = '' |