~ruther/guix-local

885060912fbb041069ad744ad9e2f09e678ec770 — Maxim Cournoyer 3 years ago e17c950
gnu: rust-bindgen-0.64: Add package.

* gnu/packages/crates-io.scm (rust-bindgen-0.64): New package.
(rust-bindgen-0.58): Inherit from it.
1 files changed, 23 insertions(+), 11 deletions(-)

M gnu/packages/crates-io.scm
M gnu/packages/crates-io.scm => gnu/packages/crates-io.scm +23 -11
@@ 6147,17 6147,17 @@ that uses Serde for transforming structs into bytes and vice versa!")
       (("rust-serde-bytes" ,rust-serde-bytes-0.10)
        ("rust-serde-derive" ,rust-serde-derive-1))))))

(define-public rust-bindgen-0.59
(define-public rust-bindgen-0.64
  (package
    (name "rust-bindgen")
    (version "0.59.2")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "bindgen" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "1f4fpycxmbrqk8r2x9brhfgjh86mzc6bngn4a9631x78b2jaklib"))))
    (version "0.64.0")
    (source (origin
              (method url-fetch)
              (uri (crate-uri "bindgen" version))
              (file-name (string-append name "-" version ".tar.gz"))
              (sha256
               (base32
                "1d0zmfc5swjgaydbamxb4xm687ahgv18dbcpvrzbf39665h3w964"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t


@@ 6165,8 6165,6 @@ that uses Serde for transforming structs into bytes and vice versa!")
       (("rust-bitflags" ,rust-bitflags-1)
        ("rust-cexpr" ,rust-cexpr-0.6)
        ("rust-clang-sys" ,rust-clang-sys-1)
        ("rust-clap" ,rust-clap-2)
        ("rust-env-logger" ,rust-env-logger-0.9)
        ("rust-lazy-static" ,rust-lazy-static-1)
        ("rust-lazycell" ,rust-lazycell-1)
        ("rust-log" ,rust-log-0.4)


@@ 6176,6 6174,7 @@ that uses Serde for transforming structs into bytes and vice versa!")
        ("rust-regex" ,rust-regex-1)
        ("rust-rustc-hash" ,rust-rustc-hash-1)
        ("rust-shlex" ,rust-shlex-1)
        ("rust-syn" ,rust-syn-1)
        ("rust-which" ,rust-which-4))))
    (home-page "https://rust-lang.github.io/rust-bindgen/")
    (synopsis "Generate Rust FFI bindings to C and C++ libraries")


@@ 6183,6 6182,19 @@ that uses Serde for transforming structs into bytes and vice versa!")
bindings to C and C++ libraries.")
    (license license:bsd-3)))

(define-public rust-bindgen-0.59
  (package
    (inherit rust-bindgen-0.64)
    (name "rust-bindgen")
    (version "0.59.2")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "bindgen" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "1f4fpycxmbrqk8r2x9brhfgjh86mzc6bngn4a9631x78b2jaklib"))))))

(define-public rust-bindgen-0.58
  (package
    (inherit rust-bindgen-0.59)