From d2cda9914e7f6048fc33a5fce4951f9deecda3e5 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sat, 14 Dec 2019 19:50:45 -0800 Subject: [PATCH 132/263] gnu: Add rust-failure-0.1. * gnu/packages/crates-io.scm (rust-failure-0.1): New variable. --- gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 36a648fc8d..e7505cbcc9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1982,6 +1982,33 @@ is configured via an environment variable.") "Type-erased Serialize and Serializer traits.") (license `(,license:asl2.0 ,license:expat)))) +(define-public rust-failure-0.1 + (package + (name "rust-failure") + (version "0.1.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "failure" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1qppmgv4i5jj6vrss91qackqnl0a12h7lnby4l7j5fdy78yxhnvr")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-backtrace" ,rust-backtrace-0.3) + ("rust-failure-derive" ,rust-failure-derive-0.1)))) + (home-page + "https://rust-lang-nursery.github.io/failure/") + (synopsis + "Experimental error handling abstraction") + (description + "Experimental error handling abstraction.") + (license `(,license:asl2.0 ,license:expat)))) + (define-public rust-failure-derive-0.1 (package (name "rust-failure-derive") -- 2.24.1