aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-apple.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-11-14 10:22:36 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:05:20 +0200
commitbc0ec397e3c5332cc67e3344c2a171b40b3797f2 (patch)
tree71ce4f8a0fd60317946a27a20312adb30c68baa1 /gnu/packages/crates-apple.scm
parent3b9569bfc5d06994a560cc908aaefe208f2a332b (diff)
downloadguix-bc0ec397e3c5332cc67e3344c2a171b40b3797f2.tar.gz
guix-bc0ec397e3c5332cc67e3344c2a171b40b3797f2.zip
gnu: Add rust-objc2-foundation-0.2.
* gnu/packages/crates-apple.scm (rust-objc2-foundation-0.2): New variable. Change-Id: Iacbd75be1c8bf24ebdca2b9c6c47599779ccb67a
Diffstat (limited to 'gnu/packages/crates-apple.scm')
-rw-r--r--gnu/packages/crates-apple.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/crates-apple.scm b/gnu/packages/crates-apple.scm
index b149b86988..a46abc830b 100644
--- a/gnu/packages/crates-apple.scm
+++ b/gnu/packages/crates-apple.scm
@@ -1424,6 +1424,33 @@ the Cocoa Foundation framework.")
`(#:tests? #f ; Test suite wants gcc-objc
#:cargo-inputs (("rust-objc-sys" ,rust-objc-sys-0.2))))))
+(define-public rust-objc2-foundation-0.2
+ (package
+ (name "rust-objc2-foundation")
+ (version "0.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "objc2-foundation" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1a6mi77jsig7950vmx9ydvsxaighzdiglk5d229k569pvajkirhf"))))
+ (build-system cargo-build-system)
+ (arguments
+ ;; Must specify the desired runtime using Cargo features on non-Apple platforms
+ `(#:skip-build? #t
+ #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+ ("rust-block2" ,rust-block2-0.5)
+ ("rust-dispatch" ,rust-dispatch-0.2)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-objc2" ,rust-objc2-0.5))
+ #:cargo-development-inputs
+ (("rust-static-assertions" ,rust-static-assertions-1))))
+ (home-page "https://github.com/madsmtm/objc2")
+ (synopsis "Bindings to the Foundation framework")
+ (description "This package provides bindings to the Foundation framework.")
+ (license license:expat)))
+
(define-public rust-objc2-proc-macros-0.1
(package
(name "rust-objc2-proc-macros")