gnu: workrave: Compute source COMMIT from VERSION.
* gnu/packages/gnome.scm (workrave)[version, source]: Conventionally generate COMMIT from VERSION, instead of the other way 'round.
This commit is contained in:
parent
fa75a21363
commit
89f2d7360b
|
@ -7427,18 +7427,15 @@ configurable file renaming. ")
|
||||||
(license license:gpl3)))
|
(license license:gpl3)))
|
||||||
|
|
||||||
(define-public workrave
|
(define-public workrave
|
||||||
(let ((commit "v1_10_21"))
|
|
||||||
(package
|
(package
|
||||||
(name "workrave")
|
(name "workrave")
|
||||||
(version (string-map (match-lambda
|
(version "1.10.21")
|
||||||
(#\_ #\.)
|
(source
|
||||||
(chr chr))
|
(origin
|
||||||
(string-drop commit 1)))
|
|
||||||
(source (origin
|
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/rcaelers/workrave.git")
|
(url "https://github.com/rcaelers/workrave.git")
|
||||||
(commit commit)))
|
(commit (string-map (match-lambda (#\_ #\.) (chr chr)) version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
|
@ -7472,7 +7469,7 @@ configurable file renaming. ")
|
||||||
repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
|
repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
|
||||||
micro-pauses and rest breaks, and restricts you to your daily limit.")
|
micro-pauses and rest breaks, and restricts you to your daily limit.")
|
||||||
(home-page "http://www.workrave.org")
|
(home-page "http://www.workrave.org")
|
||||||
(license license:gpl3+))))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public ghex
|
(define-public ghex
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in New Issue