[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/109: gnu: rust-rust-hawktracer-sys-0.4: Generate bindings during buil
From: |
guix-commits |
Subject: |
13/109: gnu: rust-rust-hawktracer-sys-0.4: Generate bindings during build. |
Date: |
Wed, 27 Dec 2023 10:10:42 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit d754b217fe8931ead39b247c70e7123514725874
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Dec 27 09:45:00 2023 +0200
gnu: rust-rust-hawktracer-sys-0.4: Generate bindings during build.
* gnu/packages/crates-io.scm (rust-rust-hawktracer-sys-0.4)[source]: Add
snippet to use a newer version of rust-bindgen, remove pre-generated
bindings and fix building bundled library.
[arguments]: Don't skip the build.
[cargo-inputs]: Replace rust-bindgen-0.37 with 0.56.
[native-inputs]: Add clang, cmake-minimal.
Change-Id: I01dd8b5b13aa449977f53296fc843153e409a1ea
---
gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++------
1 file changed, 23 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7ad198b3a3..3d0a3e79a2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -67055,18 +67055,35 @@ the file-system during development.")
(string-append name "-" version ".tar.gz"))
(sha256
(base32
- "15acrj881y2g7cwsgf1nr22cixrknp8m4x08dkx1an6zf4q8bk37"))))
+ "15acrj881y2g7cwsgf1nr22cixrknp8m4x08dkx1an6zf4q8bk37"))
+ (snippet
+ #~(begin (use-modules (guix build utils))
+ (delete-file "pregenerated_bindings.rs")
+ ;; TODO: Unbundle hawktracer
+ (substitute* "Cargo.toml"
+ (("0\\.37\\.0") "0.56")
+ ;; Generate the bindings by default since we delete the
+ ;; pregenerated bindings.
+ (("\\[features\\]")
+ "[features]\ndefault = ['generate_bindings']"))
+ (substitute* "build.rs"
+ (("( +)\\.generate" _ space)
+ (string-append space ".size_t_is_usize(true)\n"
+ space ".generate")))
+ (substitute* "hawktracer/CMakeLists.txt"
+ (("(ENABLE_DOC.*) ON" _ enable_doc)
+ (string-append enable_doc " OFF")))))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
+ `(#:cargo-inputs
(("rust-cmake" ,rust-cmake-0.1)
("rust-pkg-config" ,rust-pkg-config-0.3)
- ("rust-bindgen" ,rust-bindgen-0.37)
+ ("rust-bindgen" ,rust-bindgen-0.56)
("rust-itertools" ,rust-itertools-0.8))))
+ (native-inputs
+ (list clang cmake-minimal))
(home-page "https://github.com/AlexEne/rust_hawktracer_sys")
- (synopsis
- "Sys crate for the rust_hawktracer library")
+ (synopsis "Sys crate for the rust_hawktracer library")
(description
"This package provides a sys crate for the rust_hawktracer library.")
(license (list license:expat license:asl2.0))))
- 24/109: gnu: Remove rust-napi-sys-0.4., (continued)
- 24/109: gnu: Remove rust-napi-sys-0.4., guix-commits, 2023/12/27
- 28/109: gnu: Remove rust-memmap2-0.2., guix-commits, 2023/12/27
- 30/109: gnu: Remove rust-hmac-0.5., guix-commits, 2023/12/27
- 31/109: gnu: Remove rust-goblin-0.2., guix-commits, 2023/12/27
- 33/109: gnu: Remove rust-base64-0.6., guix-commits, 2023/12/27
- 10/109: gnu: Add rust-editdistancek-1., guix-commits, 2023/12/27
- 02/109: gnu: rust-trash-2: Update to 2.1.5., guix-commits, 2023/12/27
- 08/109: gnu: rust-seq-io-0.3: Update to 0.3.2., guix-commits, 2023/12/27
- 11/109: gnu: Add rust-buffer-redux-1., guix-commits, 2023/12/27
- 12/109: gnu: rust-rust-hawktracer-0.7: Don't skip build., guix-commits, 2023/12/27
- 13/109: gnu: rust-rust-hawktracer-sys-0.4: Generate bindings during build.,
guix-commits <=
- 14/109: gnu: Remove rust-clang-sys-0.11., guix-commits, 2023/12/27
- 15/109: gnu: Remove rust-clang-sys-0.23., guix-commits, 2023/12/27
- 19/109: gnu: Remove rust-bindgen-0.51., guix-commits, 2023/12/27
- 38/109: gnu: rust-rspec-1: Remove dependency on clippy., guix-commits, 2023/12/27
- 42/109: gnu: Remove rust-pulldown-cmark-0.0.15., guix-commits, 2023/12/27
- 43/109: gnu: Remove rust-itertools-0.6., guix-commits, 2023/12/27
- 46/109: gnu: Remove rust-cargo-metadata-0.2., guix-commits, 2023/12/27
- 16/109: gnu: Remove rust-cexpr-0.2., guix-commits, 2023/12/27
- 18/109: gnu: Remove rust-bindgen-0.50., guix-commits, 2023/12/27
- 25/109: gnu: Remove rust-napi-derive-0.5., guix-commits, 2023/12/27