summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorValentin Ignatev <valentignatev@gmail.com>2020-01-19 15:53:31 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-02-23 17:13:17 +0200
commitee24071f5eb625207754f416ccca1d6748d2e17d (patch)
tree9d0cf09e77e614c8a6778410e3601f61108089d7 /gnu
parentb85417d972a02abc4e309912433fb1f080a694b0 (diff)
gnu: Add rust-rustversion-1.0.
* gnu/packages/crates-io.scm (rust-rustversion-1.0): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 18c8f9ad0f..1f3347f9f9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12006,6 +12006,32 @@ 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.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "rustversion" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1xkr1g792w728py2qpg2zj0vfviv2xzmxkkd9w6035l9d5ss3fxk"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#: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
+ "This package provides conditional compilation according to the
+@code{rustc} compiler version.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-rustversion-0.1
(package
(name "rust-rustversion")