64 lines
1.6 KiB
Nix
64 lines
1.6 KiB
Nix
|
let
|
||
|
inputs = import ./lon.nix;
|
||
|
pkgs = import inputs.nixpkgs { };
|
||
|
description = "La Délégation Générale Numérique est une association loi 1901 domiciliée à l'ENS dont les buts sont de promouvoir la chose numérique ainsi que son usage.";
|
||
|
logo = ./img/dgnum.png;
|
||
|
links = [
|
||
|
{
|
||
|
text = "Page d'état des services";
|
||
|
target = "https://status.dgnum.eu";
|
||
|
svgFile = ./svgs/status.html;
|
||
|
linkClass = "status";
|
||
|
}
|
||
|
{
|
||
|
text = "Notre site";
|
||
|
target = "https://dgnum.eu";
|
||
|
svgFile = ./svgs/site.html;
|
||
|
}
|
||
|
{
|
||
|
text = "Forge Git";
|
||
|
target = "https://git.dgnum.eu";
|
||
|
svgFile = ./svgs/git.html;
|
||
|
linkClass = "git";
|
||
|
}
|
||
|
{
|
||
|
text = "Instagram";
|
||
|
target = "https://www.instagram.com/dgnum_eu/";
|
||
|
svgFile = ./svgs/insta.html;
|
||
|
linkClass = "instagram";
|
||
|
}
|
||
|
{
|
||
|
text = "Mastodon";
|
||
|
target = "https://social.dgnum.eu/@dgnum";
|
||
|
svgFile = ./svgs/mastodon.html;
|
||
|
linkClass = "mastodon";
|
||
|
}
|
||
|
|
||
|
{
|
||
|
text = "Nous contacter";
|
||
|
target = "mailto:contact@dgnum.eu";
|
||
|
svgFile = ./svgs/contact.html;
|
||
|
}
|
||
|
];
|
||
|
indexHtml = import ./landing.nix {
|
||
|
inherit description links logo;
|
||
|
lib = pkgs.lib;
|
||
|
writeText = pkgs.writeText;
|
||
|
};
|
||
|
in
|
||
|
|
||
|
pkgs.stdenv.mkDerivation {
|
||
|
name = "dgnum-landing";
|
||
|
version = "1.0.0";
|
||
|
src = ./.;
|
||
|
|
||
|
buildInputs = [ pkgs.tailwindcss ];
|
||
|
buildPhase = ''
|
||
|
mkdir -p $out/img
|
||
|
cp ${logo} $out/img/${builtins.baseNameOf logo}
|
||
|
cp -r ${indexHtml} $out/index.html
|
||
|
cp -r ${indexHtml} index.html
|
||
|
tailwindcss -i style.css -o $out/main.css
|
||
|
'';
|
||
|
}
|