gnu: kbd: Make sure unicode_{start,stop} work as expected.
* gnu/packages/linux.scm (kbd): Patch 'src/unicode_{start,stop}' to use 'tty'. <phases>: Add 'post-install' phase.
This commit is contained in:
parent
cf4a912919
commit
f2cdcafbc1
|
@ -1187,10 +1187,15 @@ system.")
|
||||||
"0c34b0za2v0934acvgnva0vaqpghmmhz4zh7k0m9jd4mbc91byqm"))
|
"0c34b0za2v0934acvgnva0vaqpghmmhz4zh7k0m9jd4mbc91byqm"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(substitute* "tests/Makefile.in"
|
'(begin
|
||||||
;; The '%: %.in' rule incorrectly uses @VERSION@.
|
(substitute* "tests/Makefile.in"
|
||||||
(("@VERSION@")
|
;; The '%: %.in' rule incorrectly uses @VERSION@.
|
||||||
"[@]VERSION[@]")))))
|
(("@VERSION@")
|
||||||
|
"[@]VERSION[@]"))
|
||||||
|
(substitute* '("src/unicode_start" "src/unicode_stop")
|
||||||
|
;; Assume the Coreutils are in $PATH.
|
||||||
|
(("/usr/bin/tty")
|
||||||
|
"tty"))))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (alist-cons-before
|
'(#:phases (alist-cons-before
|
||||||
|
@ -1203,7 +1208,17 @@ system.")
|
||||||
(string-append gzip "/bin/gzip"))
|
(string-append gzip "/bin/gzip"))
|
||||||
(("bzip2")
|
(("bzip2")
|
||||||
(string-append bzip2 "/bin/bzip2")))))
|
(string-append bzip2 "/bin/bzip2")))))
|
||||||
%standard-phases)))
|
(alist-cons-after
|
||||||
|
'install 'post-install
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
;; Make sure these programs find their comrades.
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bin (string-append out "/bin")))
|
||||||
|
(for-each (lambda (prog)
|
||||||
|
(wrap-program (string-append bin "/" prog)
|
||||||
|
`("PATH" ":" prefix (,bin))))
|
||||||
|
'("unicode_start" "unicode_stop"))))
|
||||||
|
%standard-phases))))
|
||||||
(inputs `(("check" ,check)
|
(inputs `(("check" ,check)
|
||||||
("gzip" ,guix:gzip)
|
("gzip" ,guix:gzip)
|
||||||
("bzip2" ,guix:bzip2)
|
("bzip2" ,guix:bzip2)
|
||||||
|
|
Loading…
Reference in New Issue