Archived
1
0
Fork 0

gnu: Add rust-bindgen-cli-0.69.

* gnu/packages/rust-apps.scm (rust-bindgen-cli): New variable.
(rust-bindgen): Remove this package.

Change-Id: I0841f34d73acf4e161c9f0ba0c6543d7f0d03092
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
aurtzy 2024-03-08 15:27:15 -05:00 committed by Efraim Flashner
parent a52701a4d3
commit 4ef63d7ed0
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1843,42 +1843,43 @@ rebase.")
(define-public rust-cbindgen rust-cbindgen-0.26) (define-public rust-cbindgen rust-cbindgen-0.26)
;; This is the unversioned package of the latest version of bindgen. (define-public rust-bindgen-cli
(define-public rust-bindgen
(package (package
(name "rust-bindgen") (name "rust-bindgen-cli")
(version "0.69.4") (version "0.69.4")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (crate-uri "bindgen" version)) (uri (crate-uri "bindgen-cli" version))
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "18194611hn3k1dkxlha7a52sr8vmfhl9blc54xhj08cahd8wh3d0")))) (base32 "00dfny07m4xfnqbfn7yr7cqwilj6935lbyg5d39yxjfj8jglfcax"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:install-source? #f `(#:install-source? #f
#:cargo-inputs (("rust-annotate-snippets" ,rust-annotate-snippets-0.9) #:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.69)
("rust-bitflags" ,rust-bitflags-2) ("rust-clap" ,rust-clap-4)
("rust-cexpr" ,rust-cexpr-0.6) ("rust-clap-complete" ,rust-clap-complete-4)
("rust-clang-sys" ,rust-clang-sys-1) ("rust-env-logger" ,rust-env-logger-0.10)
("rust-itertools" ,rust-itertools-0.10)
("rust-lazy-static" ,rust-lazy-static-1)
("rust-lazycell" ,rust-lazycell-1)
("rust-log" ,rust-log-0.4) ("rust-log" ,rust-log-0.4)
("rust-prettyplease" ,rust-prettyplease-0.2) ("rust-shlex" ,rust-shlex-1))
("rust-proc-macro2" ,rust-proc-macro2-1) #:phases
("rust-quote" ,rust-quote-1) (modify-phases %standard-phases
("rust-regex" ,rust-regex-1) (replace 'install
("rust-rustc-hash" ,rust-rustc-hash-1) (lambda* (#:key inputs outputs #:allow-other-keys)
("rust-shlex" ,rust-shlex-1) (let* ((bin (string-append (assoc-ref outputs "out") "/bin"))
("rust-syn" ,rust-syn-2) (bindgen (string-append bin "/bindgen"))
("rust-which" ,rust-which-4)))) (llvm-dir (string-append
(inputs (list clang)) (assoc-ref inputs "clang") "/lib")))
(install-file "target/release/bindgen" bin)
(wrap-program bindgen
`("LIBCLANG_PATH" = (,llvm-dir)))))))))
(inputs (list bash-minimal clang))
(home-page "https://rust-lang.github.io/rust-bindgen/") (home-page "https://rust-lang.github.io/rust-bindgen/")
(synopsis "Generate Rust FFI bindings to C and C++ libraries") (synopsis "Generate Rust FFI bindings to C and C++ libraries")
(description "This package can be used to automatically generate Rust FFI (description "This package can be used to automatically generate Rust FFI
bindings to C and C++ libraries.") bindings to C and C++ libraries. This package provides the @command{bindgen}
command.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public sniffglue (define-public sniffglue