From 3068d3e0359822744209e51b390c1bb6d7b25c07 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 13 May 2021 14:02:46 +0200 Subject: [PATCH] Add hydra build --- flake.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 804dae4..9a89451 100644 --- a/flake.nix +++ b/flake.nix @@ -164,7 +164,10 @@ src = self; - buildPhase = "mkdocs build -d $out"; + buildPhase = '' + mkdocs build -d $out + echo "doc wiki $out" >> $out/nix-support/hydra-build-products + ''; installPhase = '' mkdir -p $out/assets/fonts @@ -185,5 +188,13 @@ ${pkgs.miniserve}/bin/miniserve --index index.html ${packages.wiki} ''; }; + + # My hydra only has x86_64-linux builders + hydraJobs = + if builtins.elem system [ "x86_64-linux" ] + then { + build = packages.wiki; + } + else { }; }); }