mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: translate-shell: Wrap binary.
* gnu/packages/dictionaries.scm (translate-shell)[arguments]: Add custom phase to wrap the 'trans' binary with the inputs. [native-inputs]: Move curl, fribidi, rlwrap ... [inputs]: ... to here.
This commit is contained in:
parent
f76335740c
commit
cf51b828af
1 changed files with 15 additions and 1 deletions
|
@ -268,6 +268,20 @@ (define-public translate-shell
|
||||||
(lambda _
|
(lambda _
|
||||||
(delete-file "translate")
|
(delete-file "translate")
|
||||||
#t))
|
#t))
|
||||||
|
(add-after 'install 'wrap-binary
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bin (string-append out "/bin/trans"))
|
||||||
|
(curl (assoc-ref inputs "curl"))
|
||||||
|
(fribidi (assoc-ref inputs "fribidi"))
|
||||||
|
(rlwrap (assoc-ref inputs "rlwrap")))
|
||||||
|
(wrap-program bin
|
||||||
|
`("PATH" ":" prefix
|
||||||
|
(,(string-append out "/bin:"
|
||||||
|
curl "/bin:"
|
||||||
|
fribidi "/bin:"
|
||||||
|
rlwrap "/bin")))))
|
||||||
|
#t))
|
||||||
(add-after 'install 'emacs-install
|
(add-after 'install 'emacs-install
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
@ -283,7 +297,7 @@ (define-public translate-shell
|
||||||
(guix build emacs-utils)
|
(guix build emacs-utils)
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
#:test-target "test"))
|
#:test-target "test"))
|
||||||
(propagated-inputs
|
(inputs
|
||||||
`(("curl" ,curl)
|
`(("curl" ,curl)
|
||||||
("fribidi" ,fribidi)
|
("fribidi" ,fribidi)
|
||||||
("rlwrap" ,rlwrap)))
|
("rlwrap" ,rlwrap)))
|
||||||
|
|
Loading…
Reference in a new issue