1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
{ pkgs, ... }: let pythonEnv = pkgs.python3.withPackages (ps: with ps; [ mkdocs mkdocs-material pillow cairosvg ]); in pkgs.runCommand "website" { buildInputs = [ pythonEnv ]; } '' cp -r ${./.} ./source chmod -R +w ./source cd ./source mkdocs build mv site $out ''