guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: emacs-flycheck: Don't rely on pkg-info.el for 'flycheck-vers


From: Ludovic Courtès
Subject: 01/03: gnu: emacs-flycheck: Don't rely on pkg-info.el for 'flycheck-version'.
Date: Fri, 27 Jul 2018 12:53:26 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 223779c4c5d0eb017e99cd1045d619fbe3193334
Author: Ludovic Courtès <address@hidden>
Date:   Fri Jul 27 14:15:17 2018 +0200

    gnu: emacs-flycheck: Don't rely on pkg-info.el for 'flycheck-version'.
    
    * gnu/packages/emacs.scm (flycheck)[source]: Add 'modules' and
    'snippet'.
---
 gnu/packages/emacs.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index eab3127..114fcee 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]