clan-core/docs/nix/default.nix

28 lines
444 B
Nix
Raw Normal View History

2024-04-16 17:06:45 +00:00
{ pkgs, module-docs, ... }:
pkgs.stdenv.mkDerivation {
name = "clan-documentation";
2024-04-13 12:42:37 +00:00
src = ../.;
nativeBuildInputs =
[ pkgs.python3 ]
++ (with pkgs.python3Packages; [
mkdocs
mkdocs-material
]);
2024-04-16 17:06:45 +00:00
configurePhase = ''
mkdir -p ./site/reference
cp -af ${module-docs}/* ./site/reference/
'';
buildPhase = ''
mkdocs build --strict
ls -la .
'';
installPhase = ''
2024-04-13 17:39:11 +00:00
cp -a out/ $out/
'';
}