guix-commits
[Top][All Lists]
Advanced

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

01/03: gnu: emacs-go-mode: Fetch sources from git.


From: guix-commits
Subject: 01/03: gnu: emacs-go-mode: Fetch sources from git.
Date: Tue, 27 Nov 2018 03:40:23 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 7af36275f06169e1603a4bc59be4e8027c69b1d7
Author: Ricardo Wurmus <address@hidden>
Date:   Tue Nov 27 09:29:09 2018 +0100

    gnu: emacs-go-mode: Fetch sources from git.
    
    * gnu/packages/emacs.scm (emacs-go-mode)[source]: Fetch via git.
    [arguments]: Add phase "make-writable".
---
 gnu/packages/emacs.scm | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 02a04c8..246bf1b 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1474,14 +1474,22 @@ current match, total matches and exit status.
     (name "emacs-go-mode")
     (version "1.5.0")
     (source (origin
-              (method url-fetch)
-              (uri (string-append "https://github.com/dominikh/go-mode.el/";
-                                  "archive/v" version ".tar.gz"))
-              (file-name (string-append name "-" version ".tar.gz"))
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/dominikh/go-mode.el.git";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "1adngbjyb8qnwg7n6r2y31djw9j6qf3b9fi63zd85035q7x4ljnm"))))
+                "1nd2h50yb0493wvf1h7fzplq45rmqn2w7kxpgnlxzhkvq99v8vzf"))))
     (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'make-writable
+           (lambda _
+             (for-each make-file-writable (find-files "." "\\.el$"))
+             #t)))))
     (home-page "https://github.com/dominikh/go-mode.el";)
     (synopsis "Go mode for Emacs")
     (description



reply via email to

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