guix: mes.git: Add git hash to version.
* guix.scm (mes.git): Add git hash to version.
This commit is contained in:
parent
4d1df9cbcb
commit
993181ad65
13
guix.scm
13
guix.scm
|
@ -129,11 +129,14 @@ prototype in C and a Nyacc-based C compiler in [Guile] Scheme.")
|
||||||
(license gpl3+))))
|
(license gpl3+))))
|
||||||
|
|
||||||
(define-public mes.git
|
(define-public mes.git
|
||||||
(package
|
(let ((version "0.6")
|
||||||
(inherit mes)
|
(revision "0")
|
||||||
(name "mes")
|
(commit (read-string (open-pipe "git show HEAD | head -1 | cut -d ' ' -f 2" OPEN_READ))))
|
||||||
(version "git")
|
(package
|
||||||
(source (local-file %source-dir #:recursive? #t #:select? git-file?))))
|
(inherit mes)
|
||||||
|
(name "mes.git")
|
||||||
|
(version (string-append version "-" revision "." (string-take commit 7)))
|
||||||
|
(source (local-file %source-dir #:recursive? #t #:select? git-file?)))))
|
||||||
|
|
||||||
;; Return it here so `guix build/environment/package' can consume it directly.
|
;; Return it here so `guix build/environment/package' can consume it directly.
|
||||||
mes.git
|
mes.git
|
||||||
|
|
Loading…
Reference in a new issue