tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/freshrss: migrate to DATA_PATH
Felix Buehler
2 years ago
29d41b7f
67b0da8f
+3
-11
2 changed files
expand all
collapse all
unified
split
nixos
modules
services
web-apps
freshrss.nix
pkgs
servers
web-apps
freshrss
default.nix
+3
-3
nixos/modules/services/web-apps/freshrss.nix
···
220
220
"catch_workers_output" = true;
221
221
};
222
222
phpEnv = {
223
223
-
FRESHRSS_DATA_PATH = "${cfg.dataDir}";
223
223
+
DATA_PATH = "${cfg.dataDir}";
224
224
};
225
225
};
226
226
};
···
267
267
WorkingDirectory = cfg.package;
268
268
};
269
269
environment = {
270
270
-
FRESHRSS_DATA_PATH = cfg.dataDir;
270
270
+
DATA_PATH = cfg.dataDir;
271
271
};
272
272
273
273
script =
···
302
302
wantedBy = [ "multi-user.target" ];
303
303
startAt = "*:0/5";
304
304
environment = {
305
305
-
FRESHRSS_DATA_PATH = cfg.dataDir;
305
305
+
DATA_PATH = cfg.dataDir;
306
306
};
307
307
serviceConfig = defaultServiceConfig //{
308
308
ExecStart = "${cfg.package}/app/actualize_script.php";
-8
pkgs/servers/web-apps/freshrss/default.nix
···
26
26
# There's nothing to build.
27
27
dontBuild = true;
28
28
29
29
-
# the data folder is no in this package and thereby declared by an env-var
30
30
-
overrideConfig = pkgs.writeText "constants.local.php" ''
31
31
-
<?php
32
32
-
define('DATA_PATH', getenv('FRESHRSS_DATA_PATH'));
33
33
-
'';
34
34
-
35
29
postPatch = ''
36
30
patchShebangs cli/*.php app/actualize_script.php
37
31
'';
···
39
33
installPhase = ''
40
34
mkdir -p $out
41
35
cp -vr * $out/
42
42
-
43
43
-
cp $overrideConfig $out/constants.local.php
44
36
'';
45
37
46
38
meta = with lib; {