snix/web/default.nix
Florian Klink 91d8b86b39 feat(web/website): init
This adds a new Website/Docs for Snix, using Thulite / Doks, which is
mostly hugo and a bit of npm.

Change-Id: Iea10d4068fa783ec0ddd6bcaba5c8d92b1a1168f
2025-03-17 17:15:08 +00:00

21 lines
418 B
Nix

{ pkgs, depot, ... }:
{
shell = pkgs.mkShell {
name = "tvix-website";
packages = [
pkgs.nodejs
pkgs.hugo
];
};
website = depot.third_party.npmlock2nix.v2.build {
pname = "snix-website";
version = "0.0.0";
src = depot.third_party.gitignoreSource ./.;
installPhase = "cp -r public/. $out";
buildCommands = [ "PATH=\"$PATH:${pkgs.hugo}/bin\" npm run build" ];
};
}