stuebinm
41d82ae436
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
20 lines
345 B
Nix
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} "$@"
|
|
'';
|
|
}
|