diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-04 11:43:10 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:57:17 +0200 |
commit | 6fdad7d9b5277083c69a491206a4b7558b3e6bb3 (patch) | |
tree | 64b60a428eb956362fc38485f14b1b334451ccbb | |
parent | 826c56ded2fe3d5b7c72face5c9f225b529b99d8 (diff) | |
download | guix-6fdad7d9b5277083c69a491206a4b7558b3e6bb3.tar.gz |
gnu: Add rust-ndk-0.8.
* gnu/packages/crates-io.scm (rust-ndk-0.8): New variable. (rust-ndk-0.7): Inherit from rust-ndk-0.8. Change-Id: Ia6e51a1a307a5dee1ddecee711acac593a88e977
-rw-r--r-- | gnu/packages/crates-io.scm | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1b3a63298a..d90f536053 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -42372,8 +42372,40 @@ general elements and for numerics.") ("rust-quickcheck" ,rust-quickcheck-0.7) ("rust-rawpointer" ,rust-rawpointer-0.1)))))) +(define-public rust-ndk-0.8 + (package + (name "rust-ndk") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ndk" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1dx5yyqh32bi161mipg4br4i33syjidw81qrq0w7mc8hf0ds6xi0")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t ; ndk-sys only supports compiling for Android + #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) + ("rust-jni" ,rust-jni-0.21) + ("rust-jni-sys" ,rust-jni-sys-0.3) + ("rust-log" ,rust-log-0.4) + ("rust-ndk-sys" ,rust-ndk-sys-0.5) + ("rust-num-enum" ,rust-num-enum-0.7) + ("rust-raw-window-handle" ,rust-raw-window-handle-0.6) + ("rust-raw-window-handle" ,rust-raw-window-handle-0.4) + ("rust-raw-window-handle" ,rust-raw-window-handle-0.5) + ("rust-thiserror" ,rust-thiserror-1)) + #:cargo-development-inputs (("rust-libc" ,rust-libc-0.2)))) + (home-page "https://github.com/rust-mobile/ndk") + (synopsis "Safe Rust bindings to the Android NDK") + (description + "This package provides safe Rust bindings to the Android NDK.") + (license (list license:expat license:asl2.0)))) + (define-public rust-ndk-0.7 (package + (inherit rust-ndk-0.8) (name "rust-ndk") (version "0.7.0") (source @@ -42383,7 +42415,6 @@ general elements and for numerics.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "180sjpyf1ylqgqw4ni8jcg3kv96vvrddzamknp4730kiwjvj4525")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #true ;XXX: Android only #:cargo-inputs @@ -42394,12 +42425,7 @@ general elements and for numerics.") ("rust-ndk-sys" ,rust-ndk-sys-0.4) ("rust-num-enum" ,rust-num-enum-0.5) ("rust-raw-window-handle" ,rust-raw-window-handle-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") - (description - "This package provides safe Rust bindings to the Android NDK.") - (license (list license:expat license:asl2.0)))) + ("rust-thiserror" ,rust-thiserror-1)))))) (define-public rust-ndk-0.6 (package |