publish: Make the nar URL prefix a parameter.
authorLudovic Courtès <ludo@gnu.org>
Wed, 22 Mar 2017 12:31:54 +0000 (13:31 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 22 Mar 2017 13:05:59 +0000 (14:05 +0100)
commitcdd7a7d2106d295ca10fc23a94b6e9d1c8b5a82a
treeb0abf265afd593ba8746358edc15b6609c5f72bb
parent46f58390cb5a01d6cb59070e8e76e9a78e9b933e
publish: Make the nar URL prefix a parameter.

* guix/scripts/publish.scm (narinfo-string): Add #:nar-path and honor it.
(render-narinfo): Likewise.
(make-request-handler): Likewise.
(run-publish-server): Likewise.
* tests/publish.scm ("custom nar path"): New test.
guix/scripts/publish.scm
tests/publish.scm