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.
This commit is contained in:
Maxim Cournoyer 2023-04-03 09:13:19 -04:00
parent e17c9500b0
commit 885060912f
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -6147,17 +6147,17 @@ (define-public rust-bincode-0.8
(("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 @@ (define-public rust-bindgen-0.59
(("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 @@ (define-public rust-bindgen-0.59
("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 @@ (define-public rust-bindgen-0.59
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)