wiki/default.nix
2023-11-26 19:55:37 +05:30

17 lines
261 B
Nix

{ stdenvNoCC
, mdbook
,
}:
stdenvNoCC.mkDerivation {
pname = "wiki";
version = "2023-11-26";
src = ./.;
buildInputs = [ mdbook ];
buildPhase = ''
mdbook build
'';
installPhase = ''
mkdir -p $out/share
cp -r book $out/share/web
'';
}