gnu: mg: Fix reference to native diffutils.
* gnu/packages/text-editors.scm (mg)[inputs]: Add diffutils. [arguments]: Refer to it in the 'correct-location-of-diff phase.master
parent
8b1bde7bb3
commit
7f2b9306ee
|
@ -47,6 +47,7 @@
|
|||
#:use-module (gnu packages aspell)
|
||||
#:use-module (gnu packages assembly)
|
||||
#:use-module (gnu packages autotools)
|
||||
#:use-module (gnu packages base)
|
||||
#:use-module (gnu packages boost)
|
||||
#:use-module (gnu packages code)
|
||||
#:use-module (gnu packages crates-io)
|
||||
|
@ -524,7 +525,8 @@ Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings. e3 can be used on
|
|||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)))
|
||||
(inputs
|
||||
`(("libbsd" ,libbsd)
|
||||
`(("diffutils" ,diffutils)
|
||||
("libbsd" ,libbsd)
|
||||
("ncurses" ,ncurses)))
|
||||
(arguments
|
||||
;; No test suite available.
|
||||
|
@ -533,11 +535,12 @@ Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings. e3 can be used on
|
|||
(string-append "CC=" ,(cc-for-target)))
|
||||
#:phases (modify-phases %standard-phases
|
||||
(delete 'configure) ; no configure script
|
||||
(add-before 'build 'correct-location-of-difftool
|
||||
(lambda _
|
||||
(add-before 'build 'correct-location-of-diff
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "buffer.c"
|
||||
(("/usr/bin/diff")
|
||||
(which "diff")))))
|
||||
(string-append (assoc-ref inputs "diffutils")
|
||||
"/bin/diff")))))
|
||||
(add-before 'build 'pkg-config-for-cross-compiling-target
|
||||
(lambda _
|
||||
(substitute* "GNUmakefile"
|
||||
|
|
Reference in New Issue