From 1114b37de650874885473ef1a26b52dfd7ff2cf6 Mon Sep 17 00:00:00 2001 From: regnat Date: Fri, 12 May 2017 16:29:37 +0200 Subject: [PATCH] Add installphase for hydra builds Also takes care of declaring hydra products for download --- default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/default.nix b/default.nix index 72d594e..9256e9b 100644 --- a/default.nix +++ b/default.nix @@ -12,5 +12,11 @@ stdenv.mkDerivation rec { ]; src = ./.; + + installPhase = '' + mkdir -p $out/nix-support + cp out/main.pdf $out/ + echo "file pdf $out/main.pdf" >> $out/nix-support/hydra-build-products + ''; }