This adds a new Website/Docs for Snix, using Thulite / Doks, which is mostly hugo and a bit of npm. Change-Id: Iea10d4068fa783ec0ddd6bcaba5c8d92b1a1168f
21 lines
418 B
Nix
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" ];
|
|
};
|
|
}
|