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
"catch_workers_output" = true;
221
};
222
phpEnv = {
223
-
FRESHRSS_DATA_PATH = "${cfg.dataDir}";
224
};
225
};
226
};
···
267
WorkingDirectory = cfg.package;
268
};
269
environment = {
270
-
FRESHRSS_DATA_PATH = cfg.dataDir;
271
};
272
273
script =
···
302
wantedBy = [ "multi-user.target" ];
303
startAt = "*:0/5";
304
environment = {
305
-
FRESHRSS_DATA_PATH = cfg.dataDir;
306
};
307
serviceConfig = defaultServiceConfig //{
308
ExecStart = "${cfg.package}/app/actualize_script.php";
···
220
"catch_workers_output" = true;
221
};
222
phpEnv = {
223
+
DATA_PATH = "${cfg.dataDir}";
224
};
225
};
226
};
···
267
WorkingDirectory = cfg.package;
268
};
269
environment = {
270
+
DATA_PATH = cfg.dataDir;
271
};
272
273
script =
···
302
wantedBy = [ "multi-user.target" ];
303
startAt = "*:0/5";
304
environment = {
305
+
DATA_PATH = cfg.dataDir;
306
};
307
serviceConfig = defaultServiceConfig //{
308
ExecStart = "${cfg.package}/app/actualize_script.php";
-8
pkgs/servers/web-apps/freshrss/default.nix
···
26
# There's nothing to build.
27
dontBuild = true;
28
29
-
# the data folder is no in this package and thereby declared by an env-var
30
-
overrideConfig = pkgs.writeText "constants.local.php" ''
31
-
<?php
32
-
define('DATA_PATH', getenv('FRESHRSS_DATA_PATH'));
33
-
'';
34
-
35
postPatch = ''
36
patchShebangs cli/*.php app/actualize_script.php
37
'';
···
39
installPhase = ''
40
mkdir -p $out
41
cp -vr * $out/
42
-
43
-
cp $overrideConfig $out/constants.local.php
44
'';
45
46
meta = with lib; {
···
26
# There's nothing to build.
27
dontBuild = true;
28
0
0
0
0
0
0
29
postPatch = ''
30
patchShebangs cli/*.php app/actualize_script.php
31
'';
···
33
installPhase = ''
34
mkdir -p $out
35
cp -vr * $out/
0
0
36
'';
37
38
meta = with lib; {