diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-11 16:55:50 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-11 17:06:20 +0200 |
commit | 7667c367033b15582cf383da62446f78e66a59ef (patch) | |
tree | 5349427aa43070dd603802f68963b30c1c544232 /pkgs/private/webapps | |
parent | c890321db12036be69ebbece202984874b1e5a57 (diff) | |
download | Nix-7667c367033b15582cf383da62446f78e66a59ef.tar.gz Nix-7667c367033b15582cf383da62446f78e66a59ef.tar.zst Nix-7667c367033b15582cf383da62446f78e66a59ef.zip |
Move spip and chloe website to pkgs
Diffstat (limited to 'pkgs/private/webapps')
-rw-r--r-- | pkgs/private/webapps/chloe/chloe.json | 14 | ||||
-rw-r--r-- | pkgs/private/webapps/chloe/default.nix | 19 | ||||
-rw-r--r-- | pkgs/private/webapps/default.nix | 3 |
3 files changed, 35 insertions, 1 deletions
diff --git a/pkgs/private/webapps/chloe/chloe.json b/pkgs/private/webapps/chloe/chloe.json new file mode 100644 index 0000000..686d751 --- /dev/null +++ b/pkgs/private/webapps/chloe/chloe.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "tag": "96fc4eb-master", | ||
3 | "meta": { | ||
4 | "name": "chloe", | ||
5 | "url": "gitolite@git.immae.eu:perso/Immae/Sites/Chloe", | ||
6 | "branch": "master" | ||
7 | }, | ||
8 | "git": { | ||
9 | "url": "gitolite@git.immae.eu:perso/Immae/Sites/Chloe", | ||
10 | "rev": "96fc4eb0099a29b0f9a58fb4eaec4bf14ac65f0a", | ||
11 | "sha256": "0mf15j6z86j2smm2k360cmm5djhcjbs9949pznwi57kw97vkm1s3", | ||
12 | "fetchSubmodules": true | ||
13 | } | ||
14 | } | ||
diff --git a/pkgs/private/webapps/chloe/default.nix b/pkgs/private/webapps/chloe/default.nix new file mode 100644 index 0000000..f148d4b --- /dev/null +++ b/pkgs/private/webapps/chloe/default.nix | |||
@@ -0,0 +1,19 @@ | |||
1 | { environment ? "prod" | ||
2 | , varDir ? "/var/lib/chloe_${environment}" | ||
3 | , spip, stdenv, mylibs, sassc }: | ||
4 | let | ||
5 | siteDir = stdenv.mkDerivation (mylibs.fetchedGitPrivate ./chloe.json // rec { | ||
6 | buildPhase = '' | ||
7 | make | ||
8 | ''; | ||
9 | installPhase = '' | ||
10 | cp -a . $out | ||
11 | ''; | ||
12 | buildInputs = [ sassc ]; | ||
13 | }); | ||
14 | in | ||
15 | spip.override { | ||
16 | ldap = true; | ||
17 | siteName = "chloe"; | ||
18 | inherit environment siteDir; | ||
19 | } | ||
diff --git a/pkgs/private/webapps/default.nix b/pkgs/private/webapps/default.nix index 46ad31c..14fd544 100644 --- a/pkgs/private/webapps/default.nix +++ b/pkgs/private/webapps/default.nix | |||
@@ -1,6 +1,7 @@ | |||
1 | { callPackage, mylibs, composerEnv, lib }: | 1 | { callPackage, mylibs, composerEnv, lib, spip }: |
2 | rec { | 2 | rec { |
3 | aten = callPackage ./aten { inherit composerEnv mylibs; }; | 3 | aten = callPackage ./aten { inherit composerEnv mylibs; }; |
4 | chloe = callPackage ./chloe { inherit mylibs spip; }; | ||
4 | connexionswing = callPackage ./connexionswing { inherit composerEnv mylibs;}; | 5 | connexionswing = callPackage ./connexionswing { inherit composerEnv mylibs;}; |
5 | ludivinecassal = callPackage ./ludivinecassal { inherit composerEnv mylibs; }; | 6 | ludivinecassal = callPackage ./ludivinecassal { inherit composerEnv mylibs; }; |
6 | piedsjaloux = callPackage ./piedsjaloux { inherit composerEnv mylibs; }; | 7 | piedsjaloux = callPackage ./piedsjaloux { inherit composerEnv mylibs; }; |