Skip to content
Snippets Groups Projects
docs.nix 460 B
Newer Older
  • Learn to ignore specific revisions
  • Tom Prince's avatar
    Tom Prince committed
    { pkgs, stdenv, lib, graphviz, plantuml, python3, sphinx }:
    
    Tom Prince's avatar
    Tom Prince committed
      pyenv = pkgs.buildEnv {
        name = "sphinx-env";
        nativeBuildInputs = [ sphinx python3.pkgs.sphinxcontrib_plantuml ];
      };
    
    in
    stdenv.mkDerivation rec {
      version = "0.0";
      name = "privatestorageio-${version}";
      src = lib.cleanSource ../.;
    
      phases = [ "unpackPhase" "buildPhase" ];
    
      depsBuildBuild = [
    
    Tom Prince's avatar
    Tom Prince committed
        pyenv
    
    Tom Prince's avatar
    Tom Prince committed
        sphinx-build -W docs/source $out/docs