diff options
Diffstat (limited to 'modules/private/websites/piedsjaloux/app/default.nix')
-rw-r--r-- | modules/private/websites/piedsjaloux/app/default.nix | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/modules/private/websites/piedsjaloux/app/default.nix b/modules/private/websites/piedsjaloux/app/default.nix deleted file mode 100644 index 4525a18..0000000 --- a/modules/private/websites/piedsjaloux/app/default.nix +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | { environment, varDir, secretsPath | ||
2 | , composerEnv, fetchurl, fetchgit, sources }: | ||
3 | let | ||
4 | app = composerEnv.buildPackage ( | ||
5 | import ./php-packages.nix { inherit composerEnv fetchurl fetchgit; } // | ||
6 | rec { | ||
7 | version = sources.websites-piedsjaloux-app.version; | ||
8 | pname = "piedsjaloux"; | ||
9 | name = "${pname}-${version}"; | ||
10 | src = sources.websites-piedsjaloux-app; | ||
11 | noDev = (environment == "prod"); | ||
12 | preInstall = '' | ||
13 | export SYMFONY_ENV="${environment}" | ||
14 | ''; | ||
15 | # /!\ miniatures and data need to be in the same physical dir due to a | ||
16 | # bug in leapt.im (searches for data/../miniatures) | ||
17 | postInstall = '' | ||
18 | cd $out | ||
19 | rm app/config/parameters.yml | ||
20 | ln -sf ${secretsPath} app/config/parameters.yml | ||
21 | rm -rf var/{logs,cache,data,miniatures,tmp} | ||
22 | ln -sf ${varDir}/{logs,cache,data,miniatures,tmp} var/ | ||
23 | ''; | ||
24 | passthru = { | ||
25 | inherit varDir environment secretsPath; | ||
26 | webRoot = "${app}/web"; | ||
27 | }; | ||
28 | }); | ||
29 | in app | ||