28 lines
372 B
Nix
28 lines
372 B
Nix
{
|
|
stdenv,
|
|
mkdocs-material
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nixfiles-docs";
|
|
|
|
src = ../../docs;
|
|
|
|
buildInputs = [
|
|
mkdocs-material
|
|
];
|
|
|
|
buildPhase = ''
|
|
python3 -m mkdocs build
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r ./site/* $out/
|
|
|
|
mkdir -p $out/nix-support
|
|
echo "doc manual $out" >> $out/nix-support/hydra-build-products
|
|
'';
|
|
}
|
|
|