gnu: emacs-js2-mode: Don't use unstable tarball.

* gnu/packages/emacs-xyz.scm (emacs-js2-mode)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2019-04-08 12:41:23 +02:00
parent 3e4e74c10e
commit 0fe4601516
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 9 additions and 8 deletions

View File

@ -4637,14 +4637,15 @@ to all the other commands, too.")
(package
(name "emacs-js2-mode")
(version "20190219")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/mooz/js2-mode/archive/"
version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1gv1vinp2avnnn6an8ffcx79vmsdjhhikz7s6cmphligb26qp2vi"))))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mooz/js2-mode.git")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0766bbr4piia9vfr4ivd2gwi8dxah654adv6h28ylz4q8xmfzm1b"))))
(build-system emacs-build-system)
(home-page "https://github.com/mooz/js2-mode/")
(synopsis "Improved JavaScript editing mode for Emacs")