efraim pushed a commit to branch rust-team
in repository guix.

commit 10cb3481ce10aac695c27fc74cc618859632313a
Author: Efraim Flashner <[email protected]>
AuthorDate: Thu Nov 14 09:42:21 2024 +0200

    gnu: Add rust-objc2-0.5.
    
    * gnu/packages/crates-apple.scm (rust-objc2-0.5): New variable.
    (rust-objc2-0.4): Inherit from rust-objc2-0.5.
    
    Change-Id: I9bb88bb9c680f2ab4b2fe49bf407d3ce98bc0e83
---
 gnu/packages/crates-apple.scm | 37 +++++++++++++++++++++++++++++++------
 1 file changed, 31 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-apple.scm b/gnu/packages/crates-apple.scm
index 4d4032ccd3..7b6f51ccf3 100644
--- a/gnu/packages/crates-apple.scm
+++ b/gnu/packages/crates-apple.scm
@@ -1150,26 +1150,29 @@ Foundation framework.")
      "This package provides utilities for testing Objective-C interop.")
     (license license:expat)))
 
-(define-public rust-objc2-0.4
+(define-public rust-objc2-0.5
   (package
     (name "rust-objc2")
-    (version "0.4.1")
+    (version "0.5.2")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "objc2" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "13gr3zqv8gzlylff5d4za91f50asb7vsrkpv8kiva3nkzm05m72m"))))
+        (base32 "015qa2d3vh7c1j2736h5wjrznri7x5ic35vl916c22gzxva8b9s6"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t ; link kind `framework` is only supported on Apple 
targets
+     ;; Must specify the desired runtime using Cargo features on non-Apple 
platforms
+     `(#:skip-build? #t
        #:cargo-inputs (("rust-malloc-buf" ,rust-malloc-buf-1)
                        ("rust-objc-sys" ,rust-objc-sys-0.3)
-                       ("rust-objc2-encode" ,rust-objc2-encode-3)
+                       ("rust-objc2-encode" ,rust-objc2-encode-4)
                        ("rust-objc2-proc-macros" ,rust-objc2-proc-macros-0.1))
        #:cargo-development-inputs
-       (("rust-iai" ,rust-iai-0.1)
+       (("rust-core-foundation" ,rust-core-foundation-0.9)
+        ("rust-iai" ,rust-iai-0.1)
+        ("rust-memoffset" ,rust-memoffset-0.9)
         ("rust-static-assertions" ,rust-static-assertions-1))))
     (home-page "https://github.com/madsmtm/objc2";)
     (synopsis
@@ -1178,6 +1181,28 @@ Foundation framework.")
 the Cocoa Foundation framework.")
     (license license:expat)))
 
+(define-public rust-objc2-0.4
+  (package
+    (inherit rust-objc2-0.5)
+    (name "rust-objc2")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "objc2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "13gr3zqv8gzlylff5d4za91f50asb7vsrkpv8kiva3nkzm05m72m"))))
+    (arguments
+     `(#:skip-build? #t ; link kind `framework` is only supported on Apple 
targets
+       #:cargo-inputs (("rust-malloc-buf" ,rust-malloc-buf-1)
+                       ("rust-objc-sys" ,rust-objc-sys-0.3)
+                       ("rust-objc2-encode" ,rust-objc2-encode-3)
+                       ("rust-objc2-proc-macros" ,rust-objc2-proc-macros-0.1))
+       #:cargo-development-inputs
+       (("rust-iai" ,rust-iai-0.1)
+        ("rust-static-assertions" ,rust-static-assertions-1))))))
+
 (define-public rust-objc2-0.3
   (package
     (inherit rust-objc2-0.4)

Reply via email to