rekahsoft-gnu/packages/emacs-xyz.scm: Package helm-rg using the maintainers method

This commit is contained in:
Collin J. Doering 2020-12-29 16:35:33 -05:00
parent f5cf0e5b7c
commit 940c742a9b
Signed by: rekahsoft
GPG Key ID: 7B4DEB93212B3022

View File

@ -541,8 +541,42 @@ See perspective.el on github: https://github.com/nex3/perspective-el
(sha256
(base32
"1k9yv9iw694alf5w7555ygk2i1b26i90rqq7ny63a4nd3y5cbs5f"))))
(build-system emacs-build-system)
(build-system gnu-build-system)
(arguments
`(#:modules ((guix build gnu-build-system)
((guix build emacs-build-system) #:prefix emacs:)
(guix build utils)
(srfi srfi-1))
#:imported-modules (,@%gnu-build-system-modules
(guix build emacs-build-system)
(guix build emacs-utils))
#:phases
(modify-phases %standard-phases
(delete 'configure)
(replace 'build
(lambda _
(invoke "make" "compile-all")
#t))
(replace 'check
(lambda _
(invoke "make" "test-noninteractive")
#t))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(target (string-append out "/share/emacs/site-lisp")))
(mkdir-p target)
(for-each
(lambda (f) (install-file f target))
(filter (lambda (f)
(not (or (string-contains f "test")
(string-contains f "checkdoc"))))
(find-files "." "\\.elc?$"))))))
(add-after 'install 'make-autoloads
(assoc-ref emacs:%standard-phases 'make-autoloads))
(delete 'strip))))
(native-inputs
`(("emacs" ,emacs-minimal)))
(propagated-inputs
`(("emacs-dash" ,emacs-dash)
("emacs-helm" ,emacs-helm)))