gnu: emacs-magit: Use G-expressions.
* gnu/packages/emacs-xyz.scm (emacs-magit)[arguments]: Use G-expressions. <#:phases>: Use search-input-file to find perl for ‘patch-exec-paths’. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>master
parent
83f444de56
commit
0bb6504ba6
|
@ -891,11 +891,12 @@ libgit2 bindings for Emacs, intended to boost the performance of Magit.")
|
|||
(base32 "0cxyvp2aav27znc7mf6c83q5pddpdniaqkrxn1r8dbgr540qmnpn"))))
|
||||
(build-system emacs-build-system)
|
||||
(arguments
|
||||
`(#:emacs ,emacs-no-x ;module support is required
|
||||
(list
|
||||
#:emacs emacs-no-x ;module support is required
|
||||
#:tests? #t
|
||||
#:test-command '("make" "test")
|
||||
#:test-command #~(list "make" "test")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'build-info-manual
|
||||
(lambda _
|
||||
(invoke "make" "info")
|
||||
|
@ -909,13 +910,13 @@ libgit2 bindings for Emacs, intended to boost the performance of Magit.")
|
|||
(lambda _
|
||||
(make-file-writable "magit.el")
|
||||
(emacs-substitute-variables "magit.el"
|
||||
("magit-version" ,version))))
|
||||
("magit-version" #$version))))
|
||||
(add-after 'set-magit-version 'patch-exec-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((perl (assoc-ref inputs "perl")))
|
||||
(make-file-writable "magit-sequence.el")
|
||||
(emacs-substitute-variables "magit-sequence.el"
|
||||
("magit-perl-executable" (string-append perl "/bin/perl"))))))
|
||||
("magit-perl-executable"
|
||||
(search-input-file inputs "/bin/perl")))))
|
||||
(add-before 'check 'configure-git
|
||||
(lambda _
|
||||
;; Otherwise some tests fail with error "unable to auto-detect
|
||||
|
|
Reference in New Issue