haccfiles/websites/docs.hacc.space/default.nix
stuebinm 41d82ae436 meta: new structure
we decided to:
 - get rid of unused packages
 - simpify the directory layout since we only have one host anyways
 - move our docs (such as they are) in-tree
2024-01-11 23:49:26 +01:00

20 lines
345 B
Nix

{ stdenvNoCC, zola, writeScriptBin }:
stdenvNoCC.mkDerivation rec {
name = "docs.hacc.space-static";
src = ./.;
phases = [ "buildPhase" ];
buildInputs = [ zola ];
buildPhase = ''
cd $src
mkdir -p $out
zola build --output-dir $out
'';
watch = writeScriptBin "watch" ''
${zola}/bin/zola serve ${src} "$@"
'';
}