]>
Commit | Line | Data |
---|---|---|
da30ae4f | 1 | { environment, varDir, secretsPath |
db343436 | 2 | , composerEnv, fetchurl, sources }: |
c890321d IB |
3 | let |
4 | app = composerEnv.buildPackage ( | |
5 | import ./php-packages.nix { inherit composerEnv fetchurl; } // | |
c890321d | 6 | rec { |
db343436 IB |
7 | version = sources.websites-florian-app.version; |
8 | pname = "tellesflorian"; | |
9 | name = "${pname}-${version}"; | |
10 | src = sources.websites-florian-app; | |
c890321d IB |
11 | noDev = (environment == "prod"); |
12 | preInstall = '' | |
13 | export SYMFONY_ENV="${environment}" | |
14 | ''; | |
15 | postInstall = '' | |
16 | cd $out | |
17 | rm app/config/parameters.yml | |
d3452fc5 | 18 | ln -sf ${secretsPath} app/config/parameters.yml |
c890321d IB |
19 | rm -rf var/{logs,cache} |
20 | ln -sf ${varDir}/var/{logs,cache,sessions} var/ | |
21 | ''; | |
22 | passthru = { | |
23 | inherit varDir environment; | |
24 | webRoot = "${app}/web"; | |
25 | }; | |
26 | }); | |
27 | in app |