From 3c722d505c22e225999d8009700c4e3bd6d8d15e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Jan 2024 11:36:38 +0200 Subject: [PATCH] gnu: Add rust-cocoa-0.25. * gnu/packages/crates-io.scm (rust-cocoa-0.25): New variable. (rust-cocoa-0.24): Inherit from rust-cocoa-0.25. Change-Id: Id1212762db8ec5f6ce7545b93d3f146a68470bf0 --- gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 8c890781d9..bbc9395c34 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -12566,8 +12566,36 @@ (define-public rust-cmake-0.1 (license (list license:asl2.0 license:expat)))) +(define-public rust-cocoa-0.25 + (package + (name "rust-cocoa") + (version "0.25.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "cocoa" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0g1pl5hq28arqmvsswf2ib7smj445miwa58qa7wrfvksz54h857n")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) + ("rust-block" ,rust-block-0.1) + ("rust-cocoa-foundation" ,rust-cocoa-foundation-0.1) + ("rust-core-foundation" ,rust-core-foundation-0.9) + ("rust-core-graphics" ,rust-core-graphics-0.23) + ("rust-foreign-types" ,rust-foreign-types-0.5) + ("rust-libc" ,rust-libc-0.2) + ("rust-objc" ,rust-objc-0.2)))) + (home-page "https://github.com/servo/core-foundation-rs") + (synopsis "Bindings to Cocoa for macOS") + (description "This package provides bindings to Cocoa for macOS.") + (license (list license:expat license:asl2.0)))) + (define-public rust-cocoa-0.24 (package + (inherit rust-cocoa-0.25) (name "rust-cocoa") (version "0.24.0") (source @@ -12577,7 +12605,6 @@ (define-public rust-cocoa-0.24 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0cp8hsajmi7gini22bmlsf9dac7cap7x1k169vxhwlr3j8p90qvg")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs @@ -12588,11 +12615,7 @@ (define-public rust-cocoa-0.24 ("rust-core-graphics" ,rust-core-graphics-0.22) ("rust-foreign-types" ,rust-foreign-types-0.3) ("rust-libc" ,rust-libc-0.2) - ("rust-objc" ,rust-objc-0.2)))) - (home-page "https://github.com/servo/core-foundation-rs") - (synopsis "Bindings to Cocoa for macOS") - (description "This package provides bindings to Cocoa for macOS.") - (license (list license:expat license:asl2.0)))) + ("rust-objc" ,rust-objc-0.2)))))) (define-public rust-cocoa-0.23 (package