diff options
Diffstat (limited to 'modules/private/websites/ludivine/app/default.nix')
-rw-r--r-- | modules/private/websites/ludivine/app/default.nix | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/modules/private/websites/ludivine/app/default.nix b/modules/private/websites/ludivine/app/default.nix deleted file mode 100644 index 323b6e0..0000000 --- a/modules/private/websites/ludivine/app/default.nix +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | { environment, varDir, secretsPath | ||
2 | , composerEnv, fetchurl, fetchgit, imagemagick, sass, ruby, sources }: | ||
3 | let | ||
4 | app = composerEnv.buildPackage ( | ||
5 | import ./php-packages.nix { inherit composerEnv fetchurl fetchgit; } // | ||
6 | rec { | ||
7 | name = "${pname}-${version}"; | ||
8 | pname = "ludivinecassal"; | ||
9 | version = sources.websites-ludivine-app.version; | ||
10 | src = sources.websites-ludivine-app; | ||
11 | noDev = (environment == "prod"); | ||
12 | preInstall = '' | ||
13 | export SYMFONY_ENV="${environment}" | ||
14 | cp app/config/parameters.yml.dist app/config/parameters.yml | ||
15 | cat >> app/config/parameters.yml <<EOF | ||
16 | leapt_im: | ||
17 | binary_path: ${imagemagick}/bin | ||
18 | assetic: | ||
19 | sass: ${sass}/bin/sass | ||
20 | ruby: ${ruby}/bin/ruby | ||
21 | EOF | ||
22 | sed -i -e "/Incenteev..ParameterHandler..ScriptHandler::buildParameters/d" composer.json | ||
23 | ''; | ||
24 | # /!\ miniatures and data need to be in the same physical dir due to a | ||
25 | # bug in leapt.im (searches for data/../miniatures) | ||
26 | postInstall = '' | ||
27 | rm -rf var/{logs,cache,data,miniatures,tmp} | ||
28 | ln -sf ${varDir}/{logs,cache,data,miniatures,tmp} var/ | ||
29 | ln -sf ${secretsPath} app/config/parameters.yml | ||
30 | ''; | ||
31 | buildInputs = [ sass ]; | ||
32 | passthru = { | ||
33 | inherit varDir environment; | ||
34 | webRoot = "${app}/web"; | ||
35 | }; | ||
36 | }); | ||
37 | in app | ||