diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-07-27 14:15:17 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-07-27 18:00:06 +0200 |
commit | 223779c4c5d0eb017e99cd1045d619fbe3193334 (patch) | |
tree | ab0ed68279afc43414551aa110493e7e6377d028 | |
parent | 26fd7b24eca1af9e297ba53bac98f5798f97f78e (diff) |
gnu: emacs-flycheck: Don't rely on pkg-info.el for 'flycheck-version'.
* gnu/packages/emacs.scm (flycheck)[source]: Add 'modules' and
'snippet'.
-rw-r--r-- | gnu/packages/emacs.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index eab31278a5..114fcee343 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -733,7 +733,15 @@ programs.") version "/flycheck-" version ".tar")) (sha256 (base32 - "01rnwan16m7cyyrfca3c5c60mbj2r3knkpzbhji2fczsf0wns240")))) + "01rnwan16m7cyyrfca3c5c60mbj2r3knkpzbhji2fczsf0wns240")) + (modules '((guix build utils))) + (snippet `(begin + ;; Change 'flycheck-version' so that it does not + ;; attempt to get its version from pkg-info.el. + (substitute* "flycheck.el" + (("\\(pkg-info-version-info 'flycheck\\)") + (string-append "\"" ,version "\""))) + #t)))) (build-system emacs-build-system) (propagated-inputs `(("emacs-dash" ,emacs-dash))) |