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
This commit is contained in:
Efraim Flashner 2024-11-14 09:40:57 +02:00
parent bbff6cdb44
commit 7d585503a1
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -479,8 +479,31 @@ (define-public rust-coreaudio-sys-0.2
"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 @@ (define-public rust-core-foundation-0.9
(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