guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

135/276: gnu: Add rust-napi-sys-2.


From: guix-commits
Subject: 135/276: gnu: Add rust-napi-sys-2.
Date: Wed, 18 Oct 2023 04:49:45 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 66ab2e82897b1c2de1cc38f1ce66b708119b9ee6
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 3 10:05:11 2023 +0300

    gnu: Add rust-napi-sys-2.
    
    * gnu/packages/crates-io.scm (rust-napi-sys-2): New variable.
    (rust-napi-sys-0.4): Inherit from rust-napi-sys-2.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 527a5e0274..4b058242a9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41058,8 +41058,28 @@ linear algebra library.")
     (description "This package provides N-API procedural macros.")
     (license license:expat)))
 
+(define-public rust-napi-sys-2
+  (package
+    (name "rust-napi-sys")
+    (version "2.2.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "napi-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1qxs0wxlax3nj3b1q1vgr5ihzp8c0d58vzm98x85gd9s5bsmwsqn"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libloading" ,rust-libloading-0.7))))
+    (home-page "https://github.com/napi-rs/napi-rs";)
+    (synopsis "NodeJS N-API raw binding")
+    (description "This package provides a NodeJS N-API raw binding.")
+    (license license:expat)))
+
 (define-public rust-napi-sys-0.4
   (package
+    (inherit rust-napi-sys-2)
     (name "rust-napi-sys")
     (version "0.4.7")
     (source
@@ -41070,7 +41090,6 @@ linear algebra library.")
        (sha256
         (base32
          "0cjirf6n4i2lw65iaww8d4hahv3cbfm5ka9hlansvnbfgzwadzq9"))))
-    (build-system cargo-build-system)
     (inputs
      (list openssl))
     (native-inputs
@@ -41084,11 +41103,7 @@ linear algebra library.")
        (("rust-flate2" ,rust-flate2-1)
         ("rust-glob" ,rust-glob-0.3)
         ("rust-regex" ,rust-regex-1)
-        ("rust-reqwest" ,rust-reqwest-0.10))))
-    (home-page "https://github.com/napi-rs/napi-rs";)
-    (synopsis "NodeJS N-API raw binding")
-    (description "This package provides a NodeJS N-API raw binding.")
-    (license license:expat)))
+        ("rust-reqwest" ,rust-reqwest-0.10))))))
 
 (define-public rust-native-tls-0.2
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]