~ruther/guix-local

df23a503998a210697f49a169ab314039889515b — Nicolas Goaziou 4 months ago 22a369e
gnu: emacs-jsonrpc: Update to 1.0.26.

Using a specific commit from Emacs repository is time consuming and
unnecessarily complicated. Also, for some reason, it doesn’t work for the
update at hand.

This commit provides multiple source URI so old release tarballs can be found.

* gnu/packages/emacs-xyz.scm (emacs-jsonrpc): Update to 1.0.26.
[source]: Switch (back) to ELPA.

Change-Id: I73822bc8e1ae5543b3c41c277522b8ab742927d4
1 files changed, 18 insertions(+), 33 deletions(-)

M gnu/packages/emacs-xyz.scm
M gnu/packages/emacs-xyz.scm => gnu/packages/emacs-xyz.scm +18 -33
@@ 23872,42 23872,27 @@ highlighting.")
    (license license:gpl3+)))

(define-public emacs-jsonrpc
  ;; Commit refers to a commit in the Emacs repository, as jsonrpc.el was
  ;; upstreamed.  By convention, it should refer to a commit in which
  ;; jsonrpc.el was actually touched.  In order to find this, you can refer to
  ;; <https://git.savannah.gnu.org/cgit/emacs.git/log/?qt=grep&q=jsonrpc>.
  (let ((commit "4e8e877c377e41d72705235922f97b69d81d0267")) ;version bump
    (package
      (name "emacs-jsonrpc")
      (version "1.0.25")
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://git.savannah.gnu.org/git/emacs/")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32
           "1vwk5pwmf61d7yb49wp0ljim3aw002bjdnpw45cpjcbqhbhkgsc6"))))
      (build-system emacs-build-system)
      (arguments
       (list #:phases
             #~(modify-phases %standard-phases
                 (replace 'unpack
                   (lambda* (#:key source #:allow-other-keys)
                     (mkdir "source")
                     (chdir "source")
                     (copy-file (string-append source "/lisp/jsonrpc.el")
                                "jsonrpc.el"))))))
      (home-page "https://elpa.gnu.org/packages/jsonrpc.html")
      (synopsis "JSON-RPC library")
      (description
       "This library implements the JSONRPC 2.0 specification as
  (package
    (name "emacs-jsonrpc")
    (version "1.0.26")
    (source
     (origin
       (method url-fetch)
       (uri (list (string-append "https://elpa.gnu.org/packages/"
                                 "jsonrpc-" version ".tar")
                  (string-append "https://elpa.gnu.org/packages/"
                                 "jsonrpc-" version ".tar.lz")))
       (sha256
        (base32 "0lsm17kak4wb9anplqlyqfy0527akb8vp2gl3lszbxh281kjg1qx"))))
    (build-system emacs-build-system)
    (home-page "https://elpa.gnu.org/packages/jsonrpc.html")
    (synopsis "JSON-RPC library")
    (description
     "This library implements the JSONRPC 2.0 specification as
described in @url{http://www.jsonrpc.org/}.  As the name suggests,
JSONRPC is a generic Remote Procedure Call protocol designed around
JSON objects.")
      (license license:gpl3+))))
    (license license:gpl3+)))

(define-public emacs-jsonnet-mode
  (package