guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/26: gnu: cl-parse-js: Improve package definition.


From: guix-commits
Subject: 06/26: gnu: cl-parse-js: Improve package definition.
Date: Thu, 3 Mar 2022 10:22:39 -0500 (EST)

glv pushed a commit to branch master
in repository guix.

commit 7f27ce8af38582c5a2242052da60d6d6d6168f7b
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Thu Mar 3 10:27:14 2022 +0100

    gnu: cl-parse-js: Improve package definition.
    
    * gnu/packages/lisp-xyz.scm (sbcl-parse-js)[source]: Use git-version and
      git-file-name functions.
---
 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 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"))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]