diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-11-14 09:40:20 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:05:13 +0200 |
commit | bbff6cdb448008320b773b020cb95d193587aa32 (patch) | |
tree | 6ebc336442012fc61bbee4ba15e9a693b5191611 /gnu/packages/crates-apple.scm | |
parent | 40bc9c9c42168a91cfa0069234590e8b0a889939 (diff) | |
download | guix-bbff6cdb448008320b773b020cb95d193587aa32.tar.gz guix-bbff6cdb448008320b773b020cb95d193587aa32.zip |
gnu: Add rust-block2-0.5.
* gnu/packages/crates-apple.scm (rust-block2-0.5): New variable.
(rust-block2-0.3): Inherit from rust-block2-0.5.
Change-Id: I9c42a50e699f4d0467c03f3817d3994ca6d3a6aa
Diffstat (limited to 'gnu/packages/crates-apple.scm')
-rw-r--r-- | gnu/packages/crates-apple.scm | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/gnu/packages/crates-apple.scm b/gnu/packages/crates-apple.scm index 11ceb517d3..adb73f5cca 100644 --- a/gnu/packages/crates-apple.scm +++ b/gnu/packages/crates-apple.scm @@ -63,27 +63,44 @@ extension of blocks.") (license license:expat))) -(define-public rust-block2-0.3 +(define-public rust-block2-0.5 (package (name "rust-block2") - (version "0.3.0") + (version "0.5.1") (source (origin (method url-fetch) (uri (crate-uri "block2" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "0s2ywcis2xf9444vmdgzr7ankrrkpchn8zimaw950cszm1imdd8m")))) + (base32 "0pyiha5his2grzqr3mynmq244laql2j20992i59asp0gy7mjw4rc")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t ; link kind `framework` is only supported on Apple targets - #:cargo-inputs (("rust-block-sys" ,rust-block-sys-0.2) - ("rust-objc2" ,rust-objc2-0.4)))) + ;; Must specify the desired runtime using Cargo features on non-Apple platforms + `(#:skip-build? #t + #:cargo-inputs (("rust-objc2" ,rust-objc2-0.5)))) (home-page "https://github.com/madsmtm/objc2") (synopsis "Apple's C language extension of blocks") (description "This package contains Apple's C language extension of blocks.") (license license:expat))) +(define-public rust-block2-0.3 + (package + (inherit rust-block2-0.5) + (name "rust-block2") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "block2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0s2ywcis2xf9444vmdgzr7ankrrkpchn8zimaw950cszm1imdd8m")))) + (arguments + `(#:skip-build? #t ; link kind `framework` is only supported on Apple targets + #:cargo-inputs (("rust-block-sys" ,rust-block-sys-0.2) + ("rust-objc2" ,rust-objc2-0.4)))))) + (define-public rust-block2-0.2 (package (inherit rust-block2-0.3) |