From 554b717952381885d93bd6fede4d26cc4c50b4a7 Mon Sep 17 00:00:00 2001 From: Valentin Ignatev Date: Sun, 19 Jan 2020 15:53:31 +0300 Subject: [PATCH 108/275] gnu: Add rust-rustversion-1.0. * gnu/packages/crates-io.scm (rust-rustversion-1.0): New variable. --- gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 41c4616c83..5cd25c10eb 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -11488,6 +11488,34 @@ rustc compiler.") "Automatically apply the suggestions made by rustc.") (license (list license:expat license:asl2.0)))) +(define-public rust-rustversion-1.0 + (package + (name "rust-rustversion") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "rustversion" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "11krxgi7j6h5crhs6ws06wwzjvgdqaazvli805xja5vyi6ykh19s")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1.0) + ("rust-quote" ,rust-quote-1.0) + ("rust-syn" ,rust-syn-1.0)))) + (home-page + "https://github.com/dtolnay/rustversion") + (synopsis + "Conditional compilation according to rustc compiler version") + (description + "Conditional compilation according to rustc compiler version.") + (license (list license:expat license:asl2.0)))) + (define-public rust-rusty-fork-0.2 (package (name "rust-rusty-fork") -- 2.25.0