diff --git a/main.nix b/main.nix index ffeb9a8..3f08164 100644 --- a/main.nix +++ b/main.nix @@ -18,6 +18,7 @@ let echo \"5e.`cut -c1-8 <<< $REV`\" > $out/pkgs/artiq-version.nix ''; artiqpkgs = import "${generatedNix}/default.nix" { inherit pkgs; }; + python3pkgs = pkgs.callPackage "${generatedNix}/pkgs/python3Packages.nix" {}; jobs = builtins.mapAttrs (key: value: pkgs.lib.hydraJob value) artiqpkgs; in jobs // { @@ -27,6 +28,18 @@ in src = generatedNix; constituents = builtins.attrValues jobs; }; + docs = pkgs.runCommand "docs" + { + buildInputs = [ + (pkgs.python3.withPackages(ps: [python3pkgs.sphinx-argparse python3pkgs.sphinxcontrib-wavedrom ps.sphinx_rtd_theme ps.sphinx])) + ]; + } + '' + mkdir $out + HOME=`mktemp -d` sphinx-build ${artiqSrc}/doc/manual $out/html + mkdir $out/nix-support + echo doc manual $out/html >> $out/nix-support/hydra-build-products + ''; extended-tests = pkgs.runCommand "extended-tests" { propagatedBuildInputs = [ (pkgs.python3.withPackages(ps: [artiqpkgs.artiq artiqpkgs.artiq-board-kc705-nist_clock]))