guix-commits
[Top][All Lists]
Advanced

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

77/330: gnu: Add rust-which-6.


From: guix-commits
Subject: 77/330: gnu: Add rust-which-6.
Date: Mon, 18 Mar 2024 07:15:18 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit e299c10ffa9fc4d1f5e9573f50fa061eec8fd254
Author: VÖRÖSKŐI András <voroskoi@gmail.com>
AuthorDate: Sat Feb 24 21:39:51 2024 +0100

    gnu: Add rust-which-6.
    
    * gnu/packages/crates-io.scm (rust-which-6): New variable.
    (rust-which-5): Inherit from rust-which-6.
    
    Change-Id: I1f82d78022a1bd5cc5f5a018143bdc8c330a45df
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2d5dad599a..813f4f54b7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -79381,8 +79381,39 @@ available on a platform.")
 using @code{bindgen}.")
     (license license:mpl2.0)))
 
+(define-public rust-which-6
+  (package
+    (name "rust-which")
+    (version "6.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "which" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "070hbvl3hjxywychmz7nj5gbsprdm38rir3kqnm48zzp1g0y19bz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--release" "--"
+                            "--skip=it_works")
+       #:cargo-inputs (("rust-either" ,rust-either-1)
+                       ("rust-home" ,rust-home-0.5)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-rustix" ,rust-rustix-0.38)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52))
+       #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/harryfei/which-rs.git";)
+    (synopsis "Rust equivalent of @command{which}")
+    (description
+     "This package provides a cross-platform Rust equivalent of the
+Unix @command{which} command.  It returns the full path of an installed
+executable.")
+    (license license:expat)))
+
 (define-public rust-which-5
   (package
+    (inherit rust-which-6)
     (name "rust-which")
     (version "5.0.0")
     (source
@@ -79397,7 +79428,6 @@ using @code{bindgen}.")
         '(begin (substitute* "Cargo.toml"
                   (("\"= *([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
                    (string-append "\"^" version)))))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags
        '("--release" "--"
@@ -79409,14 +79439,7 @@ using @code{bindgen}.")
                        ("rust-regex" ,rust-regex-1)
                        ("rust-rustix" ,rust-rustix-0.38)
                        ("rust-windows-sys" ,rust-windows-sys-0.48))
-       #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3))))
-    (home-page "https://github.com/harryfei/which-rs.git";)
-    (synopsis "Rust equivalent of @command{which}")
-    (description
-     "This package provides a cross-platform Rust equivalent of the
-Unix @command{which} command.  It returns the full path of an installed
-executable.")
-    (license license:expat)))
+       #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3))))))
 
 (define-public rust-which-4
   (package



reply via email to

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