Skip to content
Snippets Groups Projects
Unverified Commit b02a9523 authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

gnu: emacs-flycheck-cpplint: Set cpplint path.

* gnu/packages/emacs-xyz.scm (emacs-flycheck-cpplint)[inputs]: Add cpplint.
[arguments]: Add a set-cpplint-path phase to set the path of cpplint.
parent 7e08be71
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,7 @@ (define-module (gnu packages emacs-xyz)
#:use-module (gnu packages bash)
#:use-module (gnu packages cmake)
#:use-module (gnu packages code)
#:use-module (gnu packages cpp)
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages dictionaries)
......@@ -19850,6 +19851,17 @@ (define-public emacs-flycheck-cpplint
(sha256
(base32 "0l6sg83f6z8x2alnblpv03rj442sbnkkkcbf8i0agjmx3713a5yx"))))
(build-system emacs-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-cpplint-path
(lambda _
(substitute* "flycheck-google-cpplint.el"
(("\"cpplint.py\"")
(string-append "\"" (which "cpplint") "\"")))
#t)))))
(inputs
`(("cpplint" ,cpplint)))
(propagated-inputs
`(("flycheck-mode" ,emacs-flycheck)))
(synopsis "Google C++ checker for Flycheck")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment