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.
This commit is contained in:
Efraim Flashner 2023-10-03 10:05:11 +03:00
parent e9b2122e57
commit 66ab2e8289
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -41058,8 +41058,28 @@ (define-public rust-napi-derive-0.5
(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 @@ (define-public rust-napi-sys-0.4
(sha256
(base32
"0cjirf6n4i2lw65iaww8d4hahv3cbfm5ka9hlansvnbfgzwadzq9"))))
(build-system cargo-build-system)
(inputs
(list openssl))
(native-inputs
@ -41084,11 +41103,7 @@ (define-public rust-napi-sys-0.4
(("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