summary refs log tree commit diff
path: root/gnu/packages/lisp-xyz.scm
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2022-03-03 10:27:14 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2022-03-03 16:21:22 +0100
commit7f27ce8af38582c5a2242052da60d6d6d6168f7b (patch)
treee7de290a04303d3721b255eee90fdfa62538c19e /gnu/packages/lisp-xyz.scm
parent144f999b88225c73828c1e18f8ef07daa6e3456c (diff)
downloadguix-7f27ce8af38582c5a2242052da60d6d6d6168f7b.tar.gz
gnu: cl-parse-js: Improve package definition.
* gnu/packages/lisp-xyz.scm (sbcl-parse-js)[source]: Use git-version and
  git-file-name functions.
Diffstat (limited to 'gnu/packages/lisp-xyz.scm')
-rw-r--r--gnu/packages/lisp-xyz.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index c22b7dffe6..630ee3b719 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -1088,14 +1088,14 @@ multiple inspectors with independent history.")
         (revision "1"))
     (package
       (name "sbcl-parse-js")
-      (version (string-append "0.0.0-" revision "." (string-take commit 9)))
+      (version (git-version "0.0.0" revision commit))
       (source
        (origin
          (method git-fetch)
          (uri (git-reference
                (url "http://marijn.haverbeke.nl/git/parse-js")
                (commit commit)))
-         (file-name (string-append name "-" commit "-checkout"))
+         (file-name (git-file-name "cl-parse-js" version))
          (sha256
           (base32
            "1wddrnr5kiya5s3gp4cdq6crbfy9fqcz7fr44p81502sj3bvdv39"))))