gnu: bits: Use git-version and git-file-name.

* gnu/packages/bioinformatics.scm (bits)[version]: Use git-version.
[source]: Use git-file-name.
This commit is contained in:
Ricardo Wurmus 2021-05-31 16:10:20 +02:00
parent d1e1c02e28
commit f463f376e9
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -8212,13 +8212,13 @@ (define-public bits
(name "bits")
;; The version is 2.13.0 even though no release archives have been
;; published as yet.
(version (string-append "2.13.0-" revision "." (string-take commit 9)))
(version (git-version "2.13.0" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/arq5x/bits")
(commit commit)))
(file-name (string-append name "-" version "-checkout"))
(file-name (git-file-name name version))
(sha256
(base32
"17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))