From f21eb0c6d660e9c76a8b40eecf945520eeb1eba6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 19 Feb 2019 15:11:50 +0800 Subject: [PATCH] build documentation on Hydra --- main.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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]))