gnu: lsh: Fix the absolute file name of 'sexp-conv'.

* gnu/packages/lsh.scm (lsh): Rename 'fix-test-suite' phase to
  'pre-configure'.  Set PATH_SEXP_CONV in environ.h.in.
This commit is contained in:
Ludovic Courtès 2014-01-04 17:27:41 +01:00
parent 64cc58b249
commit aebaeaee33
1 changed files with 11 additions and 2 deletions

View File

@ -95,8 +95,17 @@ basis for almost any application.")
#:phases #:phases
(alist-cons-before (alist-cons-before
'configure 'fix-test-suite 'configure 'pre-configure
(lambda _ (lambda* (#:key inputs #:allow-other-keys)
;; Make sure 'lsh' and 'lshd' pick 'sexp-conv' in the right place by
;; default.
(substitute* "src/environ.h.in"
(("^#define PATH_SEXP_CONV.*")
(let* ((nettle (assoc-ref inputs "nettle"))
(sexp-conv (string-append nettle "/bin/sexp-conv")))
(string-append "#define PATH_SEXP_CONV \""
sexp-conv "\"\n"))))
;; Tests rely on $USER being set. ;; Tests rely on $USER being set.
(setenv "USER" "guix") (setenv "USER" "guix")