summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphodina <phodina@protonmail.com>2021-09-03 22:57:07 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-09-17 12:24:34 +0200
commit1c60c7c18394e63ab1d8c6839dc418a2bed00a19 (patch)
tree6a54f2120338b999ae1eec87004bd151a3be3359
parent13dc786c3ccd80c9e3645ac751c1276811b9b318 (diff)
gnu: Add rust-caps-0.5.
* gnu/packages/crates-io.scm (rust-caps-0.5): New variable. (rust-caps-0.3): Inherit from above. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/crates-io.scm35
1 files changed, 27 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9f2b8ee39f..50f9eddddd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7398,8 +7398,34 @@ remote procedure call protocol")
`(#:cargo-inputs
(("rust-capnp" ,rust-capnp-0.10))))))
+(define-public rust-caps-0.5
+ (package
+ (name "rust-caps")
+ (version "0.5.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "caps" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0h4m9s09plj85y5lb5j9hck36r8w63ifpc9s09mzi0zjvvfz5260"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-errno" ,rust-errno-0.2)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-thiserror" ,rust-thiserror-1))))
+ (home-page "https://github.com/lucab/caps-rs")
+ (synopsis "Pure-Rust library to work with Linux capabilities")
+ (description
+ "This package provides a pure-Rust library to work with Linux
+capabilities.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-caps-0.3
(package
+ (inherit rust-caps-0.5)
(name "rust-caps")
(version "0.3.3")
(source
@@ -7411,19 +7437,12 @@ remote procedure call protocol")
(sha256
(base32
"1vplgzx8nifzr3f0l8ca77jqnz3fdymdg0ickacgdvawc44a3n90"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-errno" ,rust-errno-0.2)
("rust-error-chain" ,rust-error-chain-0.12)
- ("rust-libc" ,rust-libc-0.2))))
- (home-page "https://github.com/lucab/caps-rs")
- (synopsis "Pure-Rust library to work with Linux capabilities")
- (description
- "This package provides a pure-Rust library to work with Linux
-capabilities")
- (license (list license:expat license:asl2.0))))
+ ("rust-libc" ,rust-libc-0.2))))))
(define-public rust-cargo-0.53
(package