From 5488e0556bbacd30fca99ffa99417276df8cb87b Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Thu, 3 Mar 2022 10:37:25 +0100 Subject: [PATCH] gnu: cl-uglify-js: Improve package definition. * gnu/packages/lisp-xyz.scm (sbcl-cl-uglify-js)[source]: Use git-version function. --- gnu/packages/lisp-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 96d3f69478..7910dd7aef 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -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"))))