Subject: [bug#74743] [PATCH rust-team v2 67/68] gnu: rust-napi-build-2: New variable.

From: Aaron Covrig <[email-masked]>
Date: Tue, 18 Mar 2025 21:19:25 -0400

* gnu/packages/crates-io.scm (rust-napi-build-2): New variable.

Signed-off-by: Aaron Covrig <[email-masked]>
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0cc205a013..4f87d2124e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45258,8 +45258,26 @@ (define-public rust-napi-2
     (description "This package provides N-API bindings.")
     (license license:expat)))
 
+(define-public rust-napi-build-2
+  (package
+    (name "rust-napi-build")
+    (version "2.1.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "napi-build" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0775y9ir073jvw124jvylssl8k195ilm4rj8895smx4a45rmjs20"))))
+    (build-system cargo-build-system)
+    (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-1
   (package
+    (inherit rust-napi-build-2)
     (name "rust-napi-build")
     (version "1.2.1")
     (source
@@ -45275,12 +45293,7 @@ (define-public rust-napi-build-1
                  ;; Don't try to read the removed files.
                  (substitute* "src/windows.rs"
                    (("include_bytes.*")
-                    "unreachable!(),\n"))))))
-    (build-system cargo-build-system)
-    (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)))
+                    "unreachable!(),\n"))))))))
 
 (define-public rust-napi-derive-2
   (package
-- 
2.48.1