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.
master
Tobias Geerinckx-Rice 2019-02-19 07:33:54 +01:00
parent fa75a21363
commit 89f2d7360b
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 41 additions and 44 deletions

View File

@ -7427,52 +7427,49 @@ 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 "1.10.21")
(version (string-map (match-lambda (source
(#\_ #\.) (origin
(chr chr)) (method git-fetch)
(string-drop commit 1))) (uri (git-reference
(source (origin (url "https://github.com/rcaelers/workrave.git")
(method git-fetch) (commit (string-map (match-lambda (#\_ #\.) (chr chr)) version))))
(uri (git-reference (file-name (git-file-name name version))
(url "https://github.com/rcaelers/workrave.git") (sha256
(commit commit))) (base32
(file-name (git-file-name name version)) "150qca8c552fakjlzkgarsxgp87l1xcwn19svqsa9d0cygqxjgia"))))
(sha256 (build-system glib-or-gtk-build-system)
(base32 (propagated-inputs `(("glib" ,glib)
"150qca8c552fakjlzkgarsxgp87l1xcwn19svqsa9d0cygqxjgia")))) ("gtk+" ,gtk+)
(build-system glib-or-gtk-build-system) ("gdk-pixbuf" ,gdk-pixbuf)
(propagated-inputs `(("glib" ,glib) ("gtkmm" ,gtkmm)
("gtk+" ,gtk+) ("glibmm" ,glibmm)
("gdk-pixbuf" ,gdk-pixbuf) ("libx11" ,libx11)
("gtkmm" ,gtkmm) ("libxtst" ,libxtst)
("glibmm" ,glibmm) ("dconf" ,dconf)
("libx11" ,libx11) ("libice" ,libice)))
("libxtst" ,libxtst) (inputs `(("libsm" ,libsm)
("dconf" ,dconf) ("python-cheetah" ,python2-cheetah)))
("libice" ,libice))) (native-inputs `(("glib" ,glib "bin")
(inputs `(("libsm" ,libsm) ("pkg-config" ,pkg-config)
("python-cheetah" ,python2-cheetah))) ("gettext" ,gnu-gettext)
(native-inputs `(("glib" ,glib "bin") ("autoconf" ,autoconf)
("pkg-config" ,pkg-config) ("autoconf-archive" , autoconf-archive)
("gettext" ,gnu-gettext) ("automake" ,automake)
("autoconf" ,autoconf) ("libtool" ,libtool)
("autoconf-archive" , autoconf-archive) ("intltool" ,intltool)
("automake" ,automake) ("libxscrnsaver" ,libxscrnsaver)
("libtool" ,libtool) ("gobject-introspection" ,gobject-introspection)
("intltool" ,intltool) ("python2" ,python-2)))
("libxscrnsaver" ,libxscrnsaver) (synopsis "Tool to help prevent repetitive strain injury (RSI)")
("gobject-introspection" ,gobject-introspection) (description
("python2" ,python-2))) "Workrave is a program that assists in the recovery and prevention of
(synopsis "Tool to help prevent repetitive strain injury (RSI)")
(description
"Workrave is a program that assists in the recovery and prevention of
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