guix-commits
[Top][All Lists]
Advanced

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

104/203: gnu: emacs-json-reformat: Don't use unstable tarball.


From: guix-commits
Subject: 104/203: gnu: emacs-json-reformat: Don't use unstable tarball.
Date: Wed, 10 Apr 2019 14:57:28 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 984a2307f3bbf7e4d12e9402f9e71ab2f5d558f6
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Mon Apr 8 23:28:58 2019 +0200

    gnu: emacs-json-reformat: Don't use unstable tarball.
    
    * gnu/packages/emacs-xyz.scm (emacs-json-reformat)[source]: Use GIT-FETCH 
and
    GIT-FILE-NAME.
    [arguments]: Add ‘make-tests-writable’ phase.
---
 gnu/packages/emacs-xyz.scm | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 545913e..3f1ccc6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -7373,13 +7373,13 @@ running a customisable handler command (@code{ignore} 
by default). ")
     (version "0.0.6")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://github.com/gongo/json-reformat/archive/";
-                           version ".tar.gz"))
-       (file-name (string-append name "-" version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/gongo/json-reformat.git";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32
-         "11fbq4scrgr7m0iwnzcrn2g7xvqwm2gf82sa7zy1l0nil7265p28"))
+        (base32 "0qp4n2k6s69jj4gwwimkpadjv245y54wk3bxb1x96f034gkp81vs"))
        (patches (search-patches "emacs-json-reformat-fix-tests.patch"))))
     (build-system emacs-build-system)
     (propagated-inputs
@@ -7393,6 +7393,10 @@ running a customisable handler command (@code{ignore} by 
default). ")
        #:test-command '("ert-runner")
        #:phases
        (modify-phases %standard-phases
+         (add-before 'check 'make-tests-writable
+           (lambda _
+             (for-each make-file-writable (find-files "test"))
+             #t))
          (add-before 'check 'delete-json-objects-order-test
            (lambda _
              (emacs-batch-edit-file "test/json-reformat-test.el"



reply via email to

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