gnu: vis: Fetch sources from git.

* gnu/packages/text-editors.scm (vis)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2020-08-20 18:34:28 +02:00
parent c82cf31def
commit d198eca0b3
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -76,14 +76,15 @@ (define-public vis
(package
(name "vis")
(version "0.6")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/martanne/vis/releases"
"/download/v" version
"/vis-" version ".tar.gz"))
(sha256
(base32
"0za89vrs97hysgmzpydprgvzsp7yfbr6la1w1c9pad4mqpqs7d4s"))))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/martanne/vis")
(commit (string-append "v" version))))
(sha256
(base32 "1zjm89cn3rfq8fxpwp66khy53s6vqlmw6q103qyyvix8ydzxdmsh"))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
(arguments
`(#:test-target "test"