summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-04 11:01:03 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:11 +0200
commitc00a9852cce518a326dc473044a5a486856acc42 (patch)
tree1ce3d8b438ef426dab501085b409268437940e56
parentea7813d7ca2ff8dcee928f6d22646e0e7fa038d9 (diff)
downloadguix-c00a9852cce518a326dc473044a5a486856acc42.tar.gz
gnu: Add rust-core-graphics-0.23.
* gnu/packages/crates-graphics.scm (rust-core-graphics-0.23): New
variable.
(rust-core-graphics-0.22): Inherit from rust-core-graphics-0.23.

Change-Id: Ibdd7e3e584741d81a3e921149f738ab62c23cf55
-rw-r--r--gnu/packages/crates-graphics.scm34
1 files changed, 27 insertions, 7 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 341a6a2d5c..1243a5ae1a 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -596,8 +596,34 @@ for computer graphics.")
 @code{ratatui::style::Colors}.")
     (license license:expat)))
 
+(define-public rust-core-graphics-0.23
+  (package
+    (name "rust-core-graphics")
+    (version "0.23.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "core-graphics" version))
+       (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))))
+
 (define-public rust-core-graphics-0.22
   (package
+    (inherit rust-core-graphics-0.23)
     (name "rust-core-graphics")
     (version "0.22.3")
     (source
@@ -607,7 +633,6 @@ for computer graphics.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1yz4xzbz36vbmlra0viazzlicp8kap1ldgshsp5nzz4g7fmvp095"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -615,12 +640,7 @@ for computer graphics.")
         ("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.3)
-        ("rust-libc" ,rust-libc-0.2))))
-    (home-page "https://github.com/servo/core-graphics-rs")
-    (synopsis "Bindings to Core Graphics for macOS")
-    (description
-     "This package provides bindings to Core Graphics for macOS.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-libc" ,rust-libc-0.2))))))
 
 (define-public rust-core-graphics-0.21
   (package