From 6e9db832820832abe0592393af8956769ac7d1c7 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 13 May 2021 14:02:46 +0200 Subject: [PATCH] Use hydra instead of drone --- .drone.yml | 9 --------- flake.nix | 14 +++++++++++++- 2 files changed, 13 insertions(+), 10 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 4f3ecd5..0000000 --- a/.drone.yml +++ /dev/null @@ -1,9 +0,0 @@ -kind: pipeline -name: default -type: exec - -steps: - - name: build - commands: - - nix build -L - - readlink -f result diff --git a/flake.nix b/flake.nix index 1473516..ee12880 100644 --- a/flake.nix +++ b/flake.nix @@ -164,7 +164,11 @@ src = self; - buildPhase = "mkdocs build -d $out"; + buildPhase = '' + mkdocs build -d $out + mkdir -p $out/nix-support + echo "doc wiki $out" >> $out/nix-support/hydra-build-products + ''; installPhase = '' mkdir -p $out/assets/fonts @@ -188,5 +192,13 @@ ''); }; }; + + # My hydra only has x86_64-linux builders + hydraJobs = + if builtins.elem system [ "x86_64-linux" ] + then { + build = packages.wiki; + } + else { }; }); }