From f51d24ac2e1e90604a8a33f4c241ee3988d0fff6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 18 Jul 2019 00:20:05 +0800 Subject: [PATCH] nixbld: publish conda channel on WWW --- nixbld-etc-nixos/configuration.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index b9ca033..8c15cdb 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -149,6 +149,10 @@ ACTION=="add", SUBSYSTEM=="tty", \ job = artiq:full:artiq-manual-latexpdf command = ln -sf $(jq -r '.outputs[0].path' < $HYDRA_JSON) ${hydraWwwOutputs}/artiq-manual-latexpdf-beta + + job = artiq:full:conda-channel + command = ln -sf $(jq -r '.outputs[0].path' < $HYDRA_JSON) ${hydraWwwOutputs}/conda-channel + ''; }; systemd.services.hydra-www-outputs-init = { @@ -256,7 +260,7 @@ ACTION=="add", SUBSYSTEM=="tty", \ extraConfig = '' etag off; if_modified_since off; - add_header last-modified ""; + add_header last-modified ""; ''; }; locations."/artiq/manual-beta.pdf" = { @@ -264,7 +268,16 @@ ACTION=="add", SUBSYSTEM=="tty", \ extraConfig = '' etag off; if_modified_since off; - add_header last-modified ""; + add_header last-modified ""; + ''; + }; + locations."/artiq/conda" = { + alias = "${hydraWwwOutputs}/conda-channel"; + extraConfig = '' + etag off; + if_modified_since off; + add_header last-modified ""; + autoindex on; ''; }; };