diff mbox series

[bug#54299,08/27] added rust-ndk-glue@0.5

Message ID 20220308173127.21218-7-trzickel@illegalaliensfrom.space
State New
Headers show
Series None | expand

Commit Message

Till Robin Zickel March 8, 2022, 5:31 p.m. UTC
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Comments

M March 8, 2022, 5:46 p.m. UTC | #1
Till Robin Zickel schreef op di 08-03-2022 om 18:31 [+0100]:
> +     `(#:skip-build? #t ;XXX: Android only

If it's Android-only, why is it packaged in Guix?  Guix doesn't really
support Android at the moment -- well, Android is based on the Linux
kernel, so Guix can theoretically be installed on Android (there's a
blog post about that!), but otherwise not.

Greetings,
Maxime.
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 483b138054..633123bc72 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -36429,6 +36429,33 @@  (define-public rust-ndk-glue-0.2
      "This package provides startup code for Android binaries.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ndk-glue-0.5
+  (package
+    (name "rust-ndk-glue")
+    (version "0.5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "ndk-glue" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1qkjqmz4hw37mf0igczhn90ifdyd0r1790x38ykwjprwd1q8zim1"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t ;XXX: Android only
+       #:cargo-inputs
+       (("rust-android-logger" ,rust-android-logger-0.10) ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-ndk" ,rust-ndk-0.5)
+        ("rust-ndk-context" ,rust-ndk-context-0.1)
+        ("rust-ndk-macro" ,rust-ndk-macro-0.3)
+        ("rust-ndk-sys" ,rust-ndk-sys-0.2))))
+    (home-page "https://github.com/rust-windowing/android-ndk-rs")
+    (synopsis "Startup code for Android binaries")
+    (description "This package provides startup code for Android binaries.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-ndk-macro-0.2
   (package
     (name "rust-ndk-macro")