diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /modules/private/websites/connexionswing/app/default.nix | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
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 | ||