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

commit 579207eaddbe957d7fe68bfd6b5aa21a4af1bee5
Author: Efraim Flashner <[email protected]>
AuthorDate: Thu Nov 14 09:40:57 2024 +0200

    gnu: Add rust-core-foundation-0.10.
    
    * gnu/packages/crates-apple.scm (rust-core-foundation-0.10): New
    variable.
    (rust-core-foundation-0.9): Inherit from rust-core-foundation-0.10.
    
    Change-Id: Ie20bdcd2be8b629160b342446d1c0dc7cacd73cf
---
 gnu/packages/crates-apple.scm | 30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-apple.scm b/gnu/packages/crates-apple.scm
index adb73f5cca..16f55b345f 100644
--- a/gnu/packages/crates-apple.scm
+++ b/gnu/packages/crates-apple.scm
@@ -479,8 +479,31 @@ CommonCrypto library.")
      "Bindings for Apple's CoreAudio frameworks generated via rust-bindgen.")
     (license license:expat)))
 
+(define-public rust-core-foundation-0.10
+  (package
+    (name "rust-core-foundation")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "core-foundation" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0qscay14s2rwkg8nd8ljhiaf149hj8sfy95d70zssy64r3jp2lmm"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f  ; link kind `framework` is only supported on Apple targets
+       #:cargo-inputs (("rust-core-foundation-sys" 
,rust-core-foundation-sys-0.8)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-uuid" ,rust-uuid-1))))
+    (home-page "https://github.com/servo/core-foundation-rs";)
+    (synopsis "Bindings to Core Foundation for macOS")
+    (description "This package provides bindings to Core Foundation for 
macOS.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-core-foundation-0.9
   (package
+    (inherit rust-core-foundation-0.10)
     (name "rust-core-foundation")
     (version "0.9.4")
     (source
@@ -490,18 +513,13 @@ CommonCrypto library.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "13zvbbj07yk3b61b8fhwfzhy35535a583irf23vlcg59j7h9bqci"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f             ;tests fail with a lot of "undefined reference"
        #:cargo-inputs
        (("rust-chrono" ,rust-chrono-0.4)
         ("rust-core-foundation-sys" ,rust-core-foundation-sys-0.8)
         ("rust-libc" ,rust-libc-0.2)
-        ("rust-uuid" ,rust-uuid-0.5))))
-    (home-page "https://github.com/servo/core-foundation-rs";)
-    (synopsis "Bindings to Core Foundation for macOS")
-    (description "This package provides bindings to Core Foundation for 
macOS.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-uuid" ,rust-uuid-0.5))))))
 
 (define-public rust-core-foundation-0.7
   (package

Reply via email to