feat(lisp): Correctly set location for static assets in Nix builds

In order to let Hunchentoot serve the static assets from the correct
location, the *static-file-location* parameter is set before image
dumping based on the $out-envvar which is present during the build
process.

This can easily be set manually in the config file if required by a
user.
This commit is contained in:
Vincent Ambo 2017-12-31 15:03:17 +01:00
parent 8703b6102c
commit bd3b2782b9
2 changed files with 12 additions and 9 deletions

View file

@ -28,10 +28,4 @@
;; cl-prevalence is not in the current Quicklisp -> Nix snapshot
(ql:quickload "cl-prevalence")
;; the $out path should be set in the application to let Hunchentoot serve the
;; correct static files.
(if (sb-posix:getenv "out")
(defvar *gemma-nix-out-dir* (sb-posix:getenv "out")))
(asdf:operate 'asdf:program-op :gemma)