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

Message ID 20250319011932.1899508-68-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted rust-* package upgrades |

Commit Message

Aaron Covrig March 19, 2025, 1:19 a.m. UTC
  * gnu/packages/crates-io.scm (rust-napi-build-2): New variable.

Signed-off-by: Aaron Covrig <aaron.covrig.us@ieee.org>
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)
  

Patch

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