summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-04 22:25:17 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:27 +0200
commitb44eb4782bba9bd5bad693919aeb9ec5e4c90685 (patch)
treeab61f4d745f0b7436bd28d0ff7fa25b1fba4696f /gnu
parent3a1e307b3a48e41acd48a101dacb59cef41f8cc5 (diff)
downloadguix-b44eb4782bba9bd5bad693919aeb9ec5e4c90685.tar.gz
gnu: Add rust-cocoa-0.20.
* gnu/packages/crates-apple.scm (rust-cocoa-0.20): New variable.

Change-Id: I80b87f02d232ff46ab5709065437fdc217d85743
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-apple.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/crates-apple.scm b/gnu/packages/crates-apple.scm
index 3ba49e647e..34ce39bd89 100644
--- a/gnu/packages/crates-apple.scm
+++ b/gnu/packages/crates-apple.scm
@@ -275,6 +275,28 @@ extension of blocks.")
         ("rust-libc" ,rust-libc-0.2)
         ("rust-objc" ,rust-objc-0.2))))))
 
+(define-public rust-cocoa-0.20
+  (package
+    (inherit rust-cocoa-0.25)
+    (name "rust-cocoa")
+    (version "0.20.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cocoa" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1y0wd1lyiz8cgbsf0fwyw06gb1akg6rvg5jr3wah8mvdqdpyhj8c"))))
+    (arguments
+     `(#:skip-build? #t     ; only for macOS
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-block" ,rust-block-0.1)
+                       ("rust-core-foundation" ,rust-core-foundation-0.7)
+                       ("rust-core-graphics" ,rust-core-graphics-0.19)
+                       ("rust-foreign-types" ,rust-foreign-types-0.3)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-objc" ,rust-objc-0.2))))))
+
 (define-public rust-cocoa-0.19
   (package
     (inherit rust-cocoa-0.22)