gnu: Add rust-lyon-geom-1.

* gnu/packages/crates-graphics.scm (rust-lyon-geom-1): New variable.
(rust-lyon-geom-0.17): Inherit from rust-lyon-geom-1.

Change-Id: Ifc1f283cbdfea9ba7b017d522ce31c36caa051d8
This commit is contained in:
Efraim Flashner 2024-01-04 11:10:05 +02:00
parent 5c58153f26
commit 71e2418654
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2083,8 +2083,32 @@ (define-public rust-line-drawing-0.7
graphics and video games.")
(license license:expat)))
(define-public rust-lyon-geom-1
(package
(name "rust-lyon-geom")
(version "1.0.5")
(source
(origin
(method url-fetch)
(uri (crate-uri "lyon_geom" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1ydzjz8lh2jlg9gjcpmkix0yxfgkv76yn0mb67h0nasa4f6zpv7d"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-arrayvec" ,rust-arrayvec-0.7)
("rust-euclid" ,rust-euclid-0.22)
("rust-num-traits" ,rust-num-traits-0.2)
("rust-serde" ,rust-serde-1))))
(home-page "https://github.com/nical/lyon")
(synopsis "2D graphics rendering on the GPU using tessellation")
(description
"This package provides 2D graphics rendering on the GPU using tessellation.")
(license (list license:expat license:asl2.0))))
(define-public rust-lyon-geom-0.17
(package
(inherit rust-lyon-geom-1)
(name "rust-lyon-geom")
(version "0.17.6")
(source
@ -2096,19 +2120,13 @@ (define-public rust-lyon-geom-0.17
(sha256
(base32
"12al92qsh0f8ci3qf3533r4y5hxzzyfp972vm4wqzz9bq9vwx6ff"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-arrayvec" ,rust-arrayvec-0.5)
("rust-euclid" ,rust-euclid-0.22)
("rust-num-traits" ,rust-num-traits-0.2)
("rust-serde" ,rust-serde-1))))
(home-page "https://github.com/nical/lyon")
(synopsis "2D graphics rendering on the GPU using tessellation")
(description
"This package provides 2D graphics rendering on the GPU using tessellation.")
(license (list license:expat license:asl2.0))))
("rust-serde" ,rust-serde-1))))))
(define-public rust-lyon-path-0.17
(package