gnu: ert-runner: Adjust ert-runner wrapper to honor EMACSLOADPATH.

* gnu/packages/emacs.scm (ert-runner): Use 'prefix instead of '= for setting
the EMACSLOADPATH environment variable. Reuse the already computed
EMACSLOADPATH for wrap-program. Specify the dependencies directly in the
inputs field.

Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
This commit is contained in:
Maxim Cournoyer 2018-02-12 22:11:38 -05:00 committed by Arun Isaac
parent d1d41db6bb
commit 9490c411f0
No known key found for this signature in database
GPG Key ID: 2E25EE8B61802BB3
1 changed files with 41 additions and 56 deletions

View File

@ -6176,13 +6176,6 @@ Emacs.")
;; Tests for ert-runner have a circular dependency with ecukes, and therefore ;; Tests for ert-runner have a circular dependency with ecukes, and therefore
;; cannot be run ;; cannot be run
(define-public ert-runner (define-public ert-runner
(let ((dependencies
`(("emacs-ansi" ,emacs-ansi)
("emacs-commander" ,emacs-commander)
("emacs-dash" ,emacs-dash)
("emacs-f" ,emacs-f)
("emacs-s" ,emacs-s)
("emacs-shut-up" ,emacs-shut-up))))
(package (package
(name "ert-runner") (name "ert-runner")
(version "0.7.0") (version "0.7.0")
@ -6196,7 +6189,13 @@ Emacs.")
(base32 (base32
"1657nck9i96a4xgl8crfqq0s8gflzp21pkkzwg6m3z5npjxklgwp")))) "1657nck9i96a4xgl8crfqq0s8gflzp21pkkzwg6m3z5npjxklgwp"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(inputs dependencies) (inputs
`(("emacs-ansi" ,emacs-ansi)
("emacs-commander" ,emacs-commander)
("emacs-dash" ,emacs-dash)
("emacs-f" ,emacs-f)
("emacs-s" ,emacs-s)
("emacs-shut-up" ,emacs-shut-up)))
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
@ -6210,22 +6209,8 @@ Emacs.")
,name "-" ,version))) ,name "-" ,version)))
(install-file "bin/ert-runner" (string-append out "/bin")) (install-file "bin/ert-runner" (string-append out "/bin"))
(wrap-program (string-append out "/bin/ert-runner") (wrap-program (string-append out "/bin/ert-runner")
(list "EMACSLOADPATH" ":" '= (list "EMACSLOADPATH" ":" 'prefix
(append (string-split (getenv "EMACSLOADPATH") #\:)))
,(match dependencies
(((labels packages) ...)
`(map (lambda (label package version)
(string-append (assoc-ref inputs label)
"/share/emacs/site-lisp/guix.d/"
(string-drop package 6)
"-" version))
',labels
',(map package-name packages)
',(map package-version packages))))
;; empty element to include the default load path as
;; determined by emacs' standard initialization
;; procedure
(list ""))))
#t)))) #t))))
#:include (cons* "^reporters/.*\\.el$" %default-include))) #:include (cons* "^reporters/.*\\.el$" %default-include)))
(home-page "https://github.com/rejeep/ert-runner.el") (home-page "https://github.com/rejeep/ert-runner.el")
@ -6233,7 +6218,7 @@ Emacs.")
(description "@code{ert-runner} is a tool for Emacs projects tested (description "@code{ert-runner} is a tool for Emacs projects tested
using ERT. It assumes a certain test structure setup and can therefore make using ERT. It assumes a certain test structure setup and can therefore make
running tests easier.") running tests easier.")
(license license:gpl3+)))) (license license:gpl3+)))
(define-public emacs-disable-mouse (define-public emacs-disable-mouse
(package (package