gnu: Add rust-core-graphics-0.24.

* gnu/packages/crates-graphics.scm (rust-core-graphics-0.24): New
variable.
(rust-core-graphics-0.23): Inherit from rust-core-graphics-0.24.

Change-Id: I95ee9256aab11cf272de5310a1f4895d4b333b2b
This commit is contained in:
Efraim Flashner 2024-11-14 09:46:22 +02:00
parent 192a71782f
commit a048bf4e91
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -710,8 +710,34 @@ (define-public rust-colorous-1
(description "Professional color schemes ported from d3-scale-chromatic.")
(license license:asl2.0)))
(define-public rust-core-graphics-0.24
(package
(name "rust-core-graphics")
(version "0.24.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "core-graphics" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1w8n8gqqm8swkanaibilqya8ryldp9fvf80byjxsaprn493a75gs"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t ; link kind `framework` is only supported on Apple targets
#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
("rust-core-foundation" ,rust-core-foundation-0.10)
("rust-core-graphics-types" ,rust-core-graphics-types-0.2)
("rust-foreign-types" ,rust-foreign-types-0.5)
("rust-libc" ,rust-libc-0.2))))
(home-page "https://github.com/servo/core-foundation-rs")
(synopsis "Bindings to Core Graphics for macOS")
(description
"This package provides bindings to Core Graphics for @code{macOS}.")
(license (list license:expat license:asl2.0))))
(define-public rust-core-graphics-0.23
(package
(inherit rust-core-graphics-0.24)
(name "rust-core-graphics")
(version "0.23.1")
(source
@ -721,19 +747,13 @@ (define-public rust-core-graphics-0.23
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "04m2hpzrkzkkxmvlak20ivlgf8rcsh3j3y67vgz2c30iyjx2j2lp"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
("rust-core-foundation" ,rust-core-foundation-0.9)
("rust-core-graphics-types" ,rust-core-graphics-types-0.1)
("rust-foreign-types" ,rust-foreign-types-0.5)
("rust-libc" ,rust-libc-0.2))))
(home-page "https://github.com/servo/core-foundation-rs")
(synopsis "Bindings to Core Graphics for macOS")
(description
"This package provides bindings to Core Graphics for @code{macOS}.")
(license (list license:expat license:asl2.0))))
("rust-libc" ,rust-libc-0.2))))))
(define-public rust-core-graphics-0.22
(package