aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/rust-cbindgen.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-10-23 09:44:40 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-10-23 10:30:59 +0300
commitdf2252674025d9699f2a6ebd93f6e249ee8a3d92 (patch)
tree996e0355d5d2863b9e2a13c7edccdce40ac18e3b /gnu/packages/rust-cbindgen.scm
parentb249da1ddf78366002b45ef3e748156617301526 (diff)
downloadpatches-df2252674025d9699f2a6ebd93f6e249ee8a3d92.tar
patches-df2252674025d9699f2a6ebd93f6e249ee8a3d92.tar.gz
gnu: Add rust-cfg-if-0.1.
* gnu/packages/rust-cbindgen.scm (rust-cfg-if-0.1): New hidden variable.
Diffstat (limited to 'gnu/packages/rust-cbindgen.scm')
-rw-r--r--gnu/packages/rust-cbindgen.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/rust-cbindgen.scm b/gnu/packages/rust-cbindgen.scm
index 6cc5882007..0a5e50e1ec 100644
--- a/gnu/packages/rust-cbindgen.scm
+++ b/gnu/packages/rust-cbindgen.scm
@@ -106,3 +106,25 @@ behave like a set of bitflags.")
(properties '((hidden? . #t)))
(license (list license:asl2.0
license:expat))))
+
+(define rust-cfg-if-0.1
+ (package
+ (name "rust-cfg-if")
+ (version "0.1.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cfg-if" version))
+ (file-name (string-append name "-" version ".crate"))
+ (sha256
+ (base32
+ "08h80ihs74jcyp24cd75wwabygbbdgl05k6p5dmq8akbr78vv1a7"))))
+ (build-system cargo-build-system)
+ (home-page "https://github.com/alexcrichton/cfg-if")
+ (synopsis "Define an item depending on parameters")
+ (description "This package provides a macro to ergonomically define an item
+depending on a large number of #[cfg] parameters. Structured like an
+@code{if-else} chain, the first matching branch is the item that gets emitted.")
+ (properties '((hidden? . #t)))
+ (license (list license:asl2.0
+ license:expat))))