Build the site with nix

This commit is contained in:
Luka Korošec 2025-06-20 22:20:09 +02:00
parent 3a556717bf
commit 09a424d956
Signed by: Pizmovc
GPG key ID: 4E1338930C2F3572

View file

@ -24,9 +24,25 @@
inherit pkgs;
src = inputs.eleventy-src;
};
# The static site
site = pkgs.stdenv.mkDerivation {
pname = "my-static-site";
version = "1.0.0";
src = ./.;
buildInputs = [ eleventy ];
buildPhase = "eleventy";
installPhase = ''
mkdir -p $out/
echo $out
cp -r _site/* $out/
'';
};
in
{
packages.eleventy = eleventy;
packages.site = site;
packages.default = site;
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
just