From 386f3e46ad8a5e4fc5fea27d3d2579ed40dc512b Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 19 Dec 2019 10:06:04 -0800 Subject: [PATCH] gnu: Add rust-errno-0.2. * gnu/packages/crates-io.scm (rust-errno-0.2): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index fb7bea0f24..d13005afba 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2494,6 +2494,32 @@ (define-public rust-erased-serde-0.3 "Type-erased Serialize and Serializer traits.") (license (list license:asl2.0 license:expat)))) +(define-public rust-errno-0.2 + (package + (name "rust-errno") + (version "0.2.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "errno" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0kn8mlygxxr02cm97401nppd2dbkwsalpcbai67rh6yh3rh73862")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-errno-dragonfly" ,rust-errno-dragonfly-0.1) + ("rust-libc" ,rust-libc-0.2) + ("rust-winapi" ,rust-winapi-0.3)))) + (home-page "https://github.com/lambda-fairy/rust-errno") + (synopsis "Cross-platform interface to the @code{errno} variable") + (description + "Cross-platform interface to the @code{errno} variable.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-errno-dragonfly-0.1 (package (name "rust-errno-dragonfly")