diff options
Diffstat (limited to 'modules/private/websites/connexionswing/app/default.nix')
-rw-r--r-- | modules/private/websites/connexionswing/app/default.nix | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/modules/private/websites/connexionswing/app/default.nix b/modules/private/websites/connexionswing/app/default.nix deleted file mode 100644 index b14b03b..0000000 --- a/modules/private/websites/connexionswing/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 | pname = "connexionswing"; | ||
8 | name = "${pname}-${version}"; | ||
9 | version = sources.websites-connexionswing-app.version; | ||
10 | src = sources.websites-connexionswing-app; | ||
11 | noDev = (environment == "prod"); | ||
12 | preInstall = '' | ||
13 | export SYMFONY_ENV="${environment}" | ||
14 | ''; | ||
15 | postInstall = '' | ||
16 | cd $out | ||
17 | ${if environment == "prod" then "php ./bin/console assetic:dump --env=prod --no-debug" else ""} | ||
18 | rm app/config/parameters.yml | ||
19 | ln -sf ${secretsPath} app/config/parameters.yml | ||
20 | rm -rf var/{logs,cache} | ||
21 | ln -sf ${varDir}/var/{logs,cache} var/ | ||
22 | ln -sf ${varDir}/{medias,uploads} web/images/ | ||
23 | ''; | ||
24 | passthru = { | ||
25 | inherit varDir environment; | ||
26 | webRoot = "${app}/web"; | ||
27 | }; | ||
28 | }); | ||
29 | in app | ||