gnu: tmux-themepack: Use GIT-* helpers, not NAME.

* gnu/packages/tmux.scm (tmux-themepack)[version]: Use GIT-VERSION.
[source]: Hard-code NAME.  Use GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2019-02-14 15:46:19 +01:00
parent 6d1f47082d
commit 7bef8fd5cf
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 5 additions and 6 deletions

View File

@ -4,6 +4,7 @@
;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com> ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com> ;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at> ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -61,21 +62,19 @@ continue running in the background, then later reattached.")
(revision "1")) (revision "1"))
(package (package
(name "tmux-themepack") (name "tmux-themepack")
(version (version (git-version "0.0.0" revision commit)) ; no version tags
(string-append "0.0.0-" revision "." (string-take commit 7))) ;; No version tags
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url (url "https://github.com/jimeh/tmux-themepack.git")
(string-append "https://github.com/jimeh/" name ".git"))
(commit commit))) (commit commit)))
(sha256 (sha256
(base32 (base32
"1d3k87mq5lca042jbap5kxskjy3kg79wjhhpnm6jacbn3anc67zl")) "1d3k87mq5lca042jbap5kxskjy3kg79wjhhpnm6jacbn3anc67zl"))
(file-name (string-append name "-" version "-checkout")))) (file-name (git-file-name name version))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; No test suite. `(#:tests? #f ; no test suite
#:phases (modify-phases %standard-phases #:phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(delete 'build) (delete 'build)