gnu: emacs-ewmctrl: Use git helpers.

* gnu/packages/emacs.scm (emacs-ewmctrl)[version]: Use 'git-version'.
[source]: Use 'git-file-name'.
This commit is contained in:
Oleg Pykhalov 2018-05-11 10:59:49 +03:00
parent 27cbe66fe7
commit 84960cb780
No known key found for this signature in database
GPG Key ID: 7246E11C69B79569
1 changed files with 3 additions and 5 deletions

View File

@ -8348,19 +8348,17 @@ arXiv, Google Scholar, Library of Congress, etc.
(license license:gpl3+))))
(define-public emacs-ewmctrl
(let ((commit "3d0217c4d6cdb5c308b6cb4293574f470d4faacf")
(revision "1"))
(let ((commit "3d0217c4d6cdb5c308b6cb4293574f470d4faacf"))
(package
(name "emacs-ewmctrl")
(version (string-append "0.0.1" "-" revision "."
(string-take commit 7)))
(version (git-version "0.0.1" "1" commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/flexibeast/ewmctrl.git")
(commit commit)))
(file-name (string-append name "-" version "-checkout"))
(file-name (git-file-name name version))
(sha256
(base32
"0ilwvx0qryv3v6xf0gxqwnfm6pf96gxap8h9g3f6z6lk9ff4n1wi"))))