aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-07-27 14:56:33 +0200
committerMarius Bakke <marius@gnu.org>2022-07-27 16:13:38 +0200
commit591ae23cea4868c5f0f3627758ed3dc0420c1092 (patch)
tree90e5275f8cb3b08226362850b930f2decd6b8ffe
parent94753408f3abde5a87ec99072b40f911caa8fedb (diff)
downloadguix-591ae23cea4868c5f0f3627758ed3dc0420c1092.tar
guix-591ae23cea4868c5f0f3627758ed3dc0420c1092.tar.gz
gnu: rust-ndk: Add 0.5.0.
* gnu/packages/crates-io.scm (rust-ndk-0.5): New variable. (rust-ndk-0.2): Inherit from it.
-rw-r--r--gnu/packages/crates-io.scm33
1 files changed, 28 insertions, 5 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 949812f4ba..f1a7f65f60 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -36698,26 +36698,27 @@ general elements and for numerics.")
("rust-quickcheck" ,rust-quickcheck-0.7)
("rust-rawpointer" ,rust-rawpointer-0.1))))))
-(define-public rust-ndk-0.2
+(define-public rust-ndk-0.5
(package
(name "rust-ndk")
- (version "0.2.1")
+ (version "0.5.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "ndk" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0wvf4hy18lpfkr4bap846qv2cx1vdg3x0d4hcfba9l5yzv0ngcay"))))
+ (base32 "17b9imdmv6cffr12bdpvxw1myxdyvaf6jwkmd3w7abn7akv6in4n"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #true ;XXX: Android only
#:cargo-inputs
- (("rust-jni" ,rust-jni-0.14)
+ (("rust-bitflags" ,rust-bitflags-1)
+ ("rust-jni" ,rust-jni-0.18)
("rust-jni-glue" ,rust-jni-glue-0.0)
("rust-jni-sys" ,rust-jni-sys-0.3)
("rust-ndk-sys" ,rust-ndk-sys-0.2)
- ("rust-num-enum" ,rust-num-enum-0.4)
+ ("rust-num-enum" ,rust-num-enum-0.5)
("rust-thiserror" ,rust-thiserror-1))))
(home-page "https://github.com/rust-windowing/android-ndk-rs")
(synopsis "Safe Rust bindings to the Android NDK")
@@ -36725,6 +36726,28 @@ general elements and for numerics.")
"This package provides safe Rust bindings to the Android NDK.")
(license (list license:expat license:asl2.0))))
+(define-public rust-ndk-0.2
+ (package
+ (inherit rust-ndk-0.5)
+ (name "rust-ndk")
+ (version "0.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "ndk" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0wvf4hy18lpfkr4bap846qv2cx1vdg3x0d4hcfba9l5yzv0ngcay"))))
+ (arguments
+ `(#:skip-build? #true ;XXX: Android only
+ #:cargo-inputs
+ (("rust-jni" ,rust-jni-0.14)
+ ("rust-jni-glue" ,rust-jni-glue-0.0)
+ ("rust-jni-sys" ,rust-jni-sys-0.3)
+ ("rust-ndk-sys" ,rust-ndk-sys-0.2)
+ ("rust-num-enum" ,rust-num-enum-0.4)
+ ("rust-thiserror" ,rust-thiserror-1))))))
+
(define-public rust-ndk-context-0.1
(package
(name "rust-ndk-context")