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>
This commit is contained in:
Valentin Ignatev 2020-01-19 15:53:31 +03:00 committed by Efraim Flashner
parent b85417d972
commit ee24071f5e
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -12006,6 +12006,32 @@ (define-public rust-rustfix-0.4
"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")