{ sources ? import ./lon.nix, pkgs ? import sources.nixpkgs { }, }: let 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."; links = [ { text = "État des services"; href = "https://status.dgnum.eu"; cls = "link-status"; icon = "status.svg"; } { text = "Notre site"; href = "https://dgnum.eu"; cls = "link-classic"; icon = "website.svg"; } { text = "Forge Git"; href = "https://git.dgnum.eu"; cls = "link-git"; icon = "git.svg"; } { text = "Mastodon"; href = "https://social.dgnum.eu/@dgnum"; cls = "link-mastodon"; icon = "mastodon.svg"; } { text = "Instagram"; href = "https://www.instagram.com/dgnum_eu/"; cls = "link-instagram"; icon = "instagram.svg"; } { text = "Nous contacter"; href = "mailto:contact@dgnum.eu"; cls = "link-classic"; icon = "contact.svg"; } ]; python3 = pkgs.python3.withPackages (ps: [ ps.watchdog (ps.callPackage ./pkgs/moody-templates.nix { }) ]); in { devShell = pkgs.mkShell { packages = [ (pkgs.callPackage "${sources.lon}/nix/packages/lon.nix" { }) python3 ]; }; package = pkgs.stdenv.mkDerivation { name = "dgnum-landing"; version = "1.0.1"; src = ./src; buildInputs = [ python3 ]; env.DATA_FILE = pkgs.writers.writeJSON "data.json" { inherit description links; }; configurePhase = '' export BUILD_DIR=$out ''; buildPhase = '' python3 build.py ''; }; }