gnu: corrode: Better construct version number.

* gnu/packages/haskell-apps.scm (corrode)[source]: Actually use the
let-bound COMMIT instead of duplicating it.
[version]: Call GIT-VERSION on it and a new REVISION.
This commit is contained in:
Tobias Geerinckx-Rice 2021-07-03 06:17:20 +02:00
parent eb72b3d940
commit b35adf09e7
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -145,16 +145,17 @@ (define-public cabal-install
(license license:bsd-3))) (license license:bsd-3)))
(define-public corrode (define-public corrode
(let ((commit "b6699fb2fa552a07c6091276285a44133e5c9789")) (let ((revision "0")
(commit "b6699fb2fa552a07c6091276285a44133e5c9789"))
(package (package
(name "corrode") (name "corrode")
(version (string-append "0.0.1-" (string-take commit 7))) (version (git-version "0.0.0" revision commit))
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/jameysharp/corrode") (url "https://github.com/jameysharp/corrode")
(commit "b6699fb2fa552a07c6091276285a44133e5c9789"))) (commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "02v0yyj6sk4gpg2222wzsdqjxn8w66scbnf6b20x0kbmc69qcz4r")))) (base32 "02v0yyj6sk4gpg2222wzsdqjxn8w66scbnf6b20x0kbmc69qcz4r"))))