diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-11-14 09:42:21 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:05:14 +0200 |
commit | 23c384203bccc7c095aceff496e448ed30ed836f (patch) | |
tree | 818fd3c0dc7b028cc1a98a41bfae917be435f30c /gnu/packages/crates-apple.scm | |
parent | c7d90207a9f0b83b037fb195cfba85dedb7038a4 (diff) | |
download | guix-23c384203bccc7c095aceff496e448ed30ed836f.tar.gz guix-23c384203bccc7c095aceff496e448ed30ed836f.zip |
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
Diffstat (limited to 'gnu/packages/crates-apple.scm')
-rw-r--r-- | gnu/packages/crates-apple.scm | 37 |
1 files 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) |