From 5952f575df1b0900f3b5c9ed6fa3fb8ef2e7a6dd Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 15 Dec 2019 09:36:16 -0800 Subject: [PATCH] gnu: Add rust-bindgen-0.50. * gnu/packages/crates-io.scm (rust-bindgen-0.50): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d7ee7562a3..149141bd61 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -456,6 +456,51 @@ and no more (caveat: black_box is still missing!).") that uses Serde for transforming structs into bytes and vice versa!") (license license:expat))) +(define-public rust-bindgen-0.50 + (package + (name "rust-bindgen") + (version "0.50.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "bindgen" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1k4n1d002vrfn1mlpww3ib7f275yn4rpxfwkqpr9bym27zg17ab5")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-cexpr" ,rust-cexpr-0.3) + ("rust-cfg-if" ,rust-cfg-if-0.1) + ("rust-clang-sys" ,rust-clang-sys-0.28) + ("rust-clap" ,rust-clap-2) + ("rust-env-logger" ,rust-env-logger-0.6) + ("rust-fxhash" ,rust-fxhash-0.2) + ("rust-lazy-static" ,rust-lazy-static-1.3) + ("rust-log" ,rust-log-0.4) + ("rust-peeking-take-while" ,rust-peeking-take-while-0.1) + ("rust-proc-macro2" ,rust-proc-macro2-0.4) + ("rust-quote" ,rust-quote-1.0) + ("rust-regex" ,rust-regex-1.1) + ("rust-shlex" ,rust-shlex-0.1) + ("rust-which" ,rust-which-2.0)) + #:cargo-development-inputs + (("rust-clap" ,rust-clap-2) + ("rust-diff" ,rust-diff-0.1) + ("rust-shlex" ,rust-shlex-0.1)))) + (home-page + "https://rust-lang.github.io/rust-bindgen/") + (synopsis + "Automatically generates FFI bindings to C and C++libraries") + (description + "Automatically generates Rust FFI bindings to C and C++ +libraries.") + (license license:bsd-3))) + (define-public rust-bit-set-0.5 (package (name "rust-bit-set")