gnu: cl-uglify-js: Improve package definition.

* gnu/packages/lisp-xyz.scm (sbcl-cl-uglify-js)[source]: Use git-version
  function.
This commit is contained in:
Guillaume Le Vaillant 2022-03-03 10:37:25 +01:00
parent ceb915db7e
commit 5488e0556b
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -1183,14 +1183,14 @@ (define-public sbcl-cl-uglify-js
(revision "1"))
(package
(name "sbcl-cl-uglify-js")
(version (string-append "0.1-" revision "." (string-take commit 9)))
(version (git-version "0.1" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mishoo/cl-uglify-js")
(commit commit)))
(file-name (git-file-name name version))
(file-name (git-file-name "cl-uglify-js" version))
(sha256
(base32
"0k39y3c93jgxpr7gwz7w0d8yknn1fdnxrjhd03057lvk5w8js27a"))))