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
This commit is contained in:
Efraim Flashner 2023-10-24 08:28:10 +03:00
parent 7090027d41
commit ad14b2ac61
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -84493,8 +84493,34 @@ (define-public rust-x86-0.33
("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
@ -84505,20 +84531,12 @@ (define-public rust-xattr-0.2
(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