Browse Source

gnu: skribilo: Make sure Guile-Reader is in the search path.

Reported by Luis Souto Graña <luissoutobueu@gmail.com>.

* gnu/packages/skribilo.scm (skribilo)[arguments]: Add #:phases.
gn-latest-20200428
Ludovic Courtès 7 years ago
parent
commit
2f7a10db6d
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      gnu/packages/skribilo.scm

+ 16
- 0
gnu/packages/skribilo.scm View File

@ -43,6 +43,22 @@
'(#:configure-flags (list (string-append "--with-guilemoduledir="
(assoc-ref %outputs "out")
"/share/guile/site/2.0"))
#:phases (alist-cons-before
'configure 'pre-configure
(lambda* (#:key inputs #:allow-other-keys)
;; Make sure the 'skribilo' command gets to see
;; Guile-Reader, even if Guile-Reader is not in the search
;; path.
(let ((reader (assoc-ref inputs "guile-reader")))
(substitute* "src/skribilo.in"
(("^exec (.*) -c" _ things)
(string-append "exec " things
" -L " reader "/share/guile/site/2.0"
" -C " reader "/share/guile/site/2.0"
" -c")))))
%standard-phases)
#:parallel-build? #f))
;; TODO: Add Ploticus.
(inputs `(("guile" ,guile-2.0)


Loading…
Cancel
Save