diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-18 16:10:56 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-20 01:51:48 +0200 |
commit | d3452fc59b9839846225fd254926c64a9c71f071 (patch) | |
tree | a98a0958b826ac4b2ab137720edf0195c65dd958 /pkgs/private/webapps/piedsjaloux/default.nix | |
parent | 514f9ec3beec470c4445be690673a0ceab9115b4 (diff) | |
download | Nix-d3452fc59b9839846225fd254926c64a9c71f071.tar.gz Nix-d3452fc59b9839846225fd254926c64a9c71f071.tar.zst Nix-d3452fc59b9839846225fd254926c64a9c71f071.zip |
Refactor websites
Diffstat (limited to 'pkgs/private/webapps/piedsjaloux/default.nix')
-rw-r--r-- | pkgs/private/webapps/piedsjaloux/default.nix | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/pkgs/private/webapps/piedsjaloux/default.nix b/pkgs/private/webapps/piedsjaloux/default.nix deleted file mode 100644 index f5370db..0000000 --- a/pkgs/private/webapps/piedsjaloux/default.nix +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | { environment ? "prod" | ||
2 | , varDir ? "/var/lib/piedsjaloux_${environment}" | ||
3 | , composerEnv, fetchurl, fetchgit, mylibs }: | ||
4 | let | ||
5 | app = composerEnv.buildPackage ( | ||
6 | import ./php-packages.nix { inherit composerEnv fetchurl fetchgit; } // | ||
7 | mylibs.fetchedGitPrivate ./piedsjaloux.json // | ||
8 | rec { | ||
9 | noDev = (environment == "prod"); | ||
10 | preInstall = '' | ||
11 | export SYMFONY_ENV="${environment}" | ||
12 | ''; | ||
13 | # /!\ miniatures and data need to be in the same physical dir due to a | ||
14 | # bug in leapt.im (searches for data/../miniatures) | ||
15 | postInstall = '' | ||
16 | cd $out | ||
17 | rm app/config/parameters.yml | ||
18 | ln -sf /var/secrets/webapps/${environment}-piedsjaloux app/config/parameters.yml | ||
19 | rm -rf var/{logs,cache,data,miniatures,tmp} | ||
20 | ln -sf ${varDir}/{logs,cache,data,miniatures,tmp} var/ | ||
21 | ''; | ||
22 | passthru = { | ||
23 | inherit varDir environment; | ||
24 | webRoot = "${app}/web"; | ||
25 | }; | ||
26 | }); | ||
27 | in app | ||