[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
138/276: gnu: Add rust-napi-build-1.
From: |
guix-commits |
Subject: |
138/276: gnu: Add rust-napi-build-1. |
Date: |
Wed, 18 Oct 2023 04:49:46 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit d92d33004d35430683e03742d6261d76dcc674af
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 3 10:09:09 2023 +0300
gnu: Add rust-napi-build-1.
* gnu/packages/crates-io.scm (rust-napi-build-1): New variable.
(rust-napi-build-0.2): Inherit from rust-napi-build-1.
---
gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++--------
1 file changed, 27 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e30b9ea3bf..5a5674052f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41013,28 +41013,47 @@ linear algebra library.")
(description "This package provides N-API bindings.")
(license license:expat)))
-(define-public rust-napi-build-0.2
+(define-public rust-napi-build-1
(package
(name "rust-napi-build")
- (version "0.2.1")
+ (version "1.2.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "napi-build" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32
- "1z02mlw1wa01fjpjnqns3f3vxacbg1jnk98hcg3pgwp5xy3zdyqq"))))
+ (base32 "0asjspv0gkg6lgdz3d6gl9ab7hbc9z2hc51m637j6x3jfa8l3m7b"))
+ (snippet
+ #~(begin (use-modules (guix build utils))
+ (delete-file-recursively "src/libs")
+ ;; Don't try to read the removed files.
+ (substitute* "src/windows.rs"
+ (("include_bytes.*")
+ "unreachable!(),\n"))))))
(build-system cargo-build-system)
- (arguments
- `(#:cargo-inputs
- (("rust-cfg-if" ,rust-cfg-if-0.1)
- ("rust-reqwest" ,rust-reqwest-0.10))))
(home-page "https://github.com/napi-rs/napi-rs")
(synopsis "N-API build support")
(description "This package provides N-API build support.")
(license license:expat)))
+(define-public rust-napi-build-0.2
+ (package
+ (inherit rust-napi-build-1)
+ (name "rust-napi-build")
+ (version "0.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "napi-build" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1z02mlw1wa01fjpjnqns3f3vxacbg1jnk98hcg3pgwp5xy3zdyqq"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cfg-if" ,rust-cfg-if-0.1)
+ ("rust-reqwest" ,rust-reqwest-0.10))))))
+
(define-public rust-napi-derive-2
(package
(name "rust-napi-derive")
- 60/276: gnu: rust-syn-2: Update to 2.0.37., (continued)
- 60/276: gnu: rust-syn-2: Update to 2.0.37., guix-commits, 2023/10/18
- 67/276: gnu: rust-wasm-bindgen-futures-0.4: Update to 0.4.37., guix-commits, 2023/10/18
- 102/276: gnu: rust-mio-0.8: Update to 0.8.8., guix-commits, 2023/10/18
- 108/276: gnu: Add rust-serial-test-derive-2., guix-commits, 2023/10/18
- 107/276: gnu: Add rust-serial-test-2., guix-commits, 2023/10/18
- 123/276: gnu: Add rust-auto-impl-0.5., guix-commits, 2023/10/18
- 136/276: gnu: Add rust-napi-derive-backend-1., guix-commits, 2023/10/18
- 128/276: gnu: rust-proptest-1: Update to 1.3.1., guix-commits, 2023/10/18
- 130/276: gnu: rust-retain-mut-0.1: Update to 0.1.9., guix-commits, 2023/10/18
- 137/276: gnu: Add rust-napi-derive-2., guix-commits, 2023/10/18
- 138/276: gnu: Add rust-napi-build-1.,
guix-commits <=
- 145/276: gnu: Add rust-serde-wasm-bindgen-0.3., guix-commits, 2023/10/18
- 169/276: gnu: Add rust-termtree-0.4., guix-commits, 2023/10/18
- 184/276: gnu: rust-spin-0.9: Update to 0.9.8., guix-commits, 2023/10/18
- 186/276: gnu: rust-blake3-1: Update to 1.5.0., guix-commits, 2023/10/18
- 211/276: gnu: rust-merge-0.1: Add missing inputs., guix-commits, 2023/10/18
- 235/276: gnu: rust-quinn-0.8: Add missing input., guix-commits, 2023/10/18
- 238/276: gnu: rust-libpijul-0.12: Skip build., guix-commits, 2023/10/18
- 243/276: gnu: rust-security-framework-sys-0.2: Skip build., guix-commits, 2023/10/18
- 244/276: gnu: rust-serde-repr-0.1: Update to 0.1.16., guix-commits, 2023/10/18
- 252/276: gnu: rust-trust-dns-https-0.19: Add missing input., guix-commits, 2023/10/18