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")) (revision "1"))
(package (package
(name "sbcl-cl-uglify-js") (name "sbcl-cl-uglify-js")
(version (string-append "0.1-" revision "." (string-take commit 9))) (version (git-version "0.1" revision commit))
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/mishoo/cl-uglify-js") (url "https://github.com/mishoo/cl-uglify-js")
(commit commit))) (commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name "cl-uglify-js" version))
(sha256 (sha256
(base32 (base32
"0k39y3c93jgxpr7gwz7w0d8yknn1fdnxrjhd03057lvk5w8js27a")))) "0k39y3c93jgxpr7gwz7w0d8yknn1fdnxrjhd03057lvk5w8js27a"))))