guix-commits
[Top][All Lists]
Advanced

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

18/156: gnu: Add rust-xattr-1.


From: guix-commits
Subject: 18/156: gnu: Add rust-xattr-1.
Date: Tue, 24 Oct 2023 08:52:03 -0400 (EDT)

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

commit 1fc4719d8f4b8d7f656b35a80338bcd0f4493e3f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 24 08:28:10 2023 +0300

    gnu: Add rust-xattr-1.
    
    * gnu/packages/crates-io.scm (rust-xattr-1): New variable.
    (rust-xattr-0.2): Inherit from rust-xattr-1.
    
    Change-Id: Ib28cea71b8fe5c55952eefa7bc26bb262c3e0a71
---
 gnu/packages/crates-io.scm | 36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2e5b2c5926..5da357b0ba 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -84478,8 +84478,34 @@ languages.")
         ("rust-raw-cpuid" ,rust-raw-cpuid-8)
         ("rust-serde-json" ,rust-serde-json-1))))))
 
+(define-public rust-xattr-1
+  (package
+    (name "rust-xattr")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "xattr" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "11b93igkwsq88b6m14x63c13zns418njh6ngvg2fbwqzyw4n0s7l"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; Tries to access files outside of build environment.
+       #:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2))
+       #:cargo-development-inputs
+       (("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/Stebalien/xattr";)
+    (synopsis "Unix extended file system attributes")
+    (description
+     "This package provide a small library for setting, getting, and listing
+extended attributes.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-xattr-0.2
   (package
+    (inherit rust-xattr-1)
     (name "rust-xattr")
     (version "0.2.2")
     (source
@@ -84490,20 +84516,12 @@ languages.")
         (sha256
          (base32
           "0k556fb6f5jc907975j9c8iynl2fqz3rf0w6fiig83i4yi0kfk14"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-libc" ,rust-libc-0.2))
        #:cargo-development-inputs
-       (("rust-tempfile" ,rust-tempfile-3))))
-    (home-page "https://github.com/Stebalien/xattr";)
-    (synopsis "Unix extended file system attributes")
-    (description
-     "This package provide a small library for setting, getting, and listing
-extended attributes.")
-    (license (list license:asl2.0
-                   license:expat))))
+       (("rust-tempfile" ,rust-tempfile-3))))))
 
 (define-public rust-xcb-1
   (package



reply via email to

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