gnu: Add rust-gdk-pixbuf-0.17.

* gnu/packages/crates-gtk.scm (rust-gdk-pixbuf-0.17): New variable.
(rust-gdk-pixbuf-0.15): Inherit from rust-gdk-pixbuf-0.17.
This commit is contained in:
Efraim Flashner 2023-10-01 16:13:02 +03:00
parent 62c961d311
commit 62e9ca2792
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -508,8 +508,41 @@ (define-public rust-gdk-0.12
#:cargo-development-inputs #:cargo-development-inputs
(("rust-gir-format-check" ,rust-gir-format-check-0.1)))))) (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
(define-public rust-gdk-pixbuf-0.17
(package
(name "rust-gdk-pixbuf")
(version "0.17.10")
(source
(origin
(method url-fetch)
(uri (crate-uri "gdk-pixbuf" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "05q7ajsp2z8xi355h26k7lvq7n3lj9xm61vhn045g3238v46npb9"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f ; `Errors` doesn't implement `std::fmt::Display`
#:cargo-inputs
(("rust-bitflags" ,rust-bitflags-1)
("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.17)
("rust-gio" ,rust-gio-0.17)
("rust-glib" ,rust-glib-0.17)
("rust-libc" ,rust-libc-0.2)
("rust-once-cell" ,rust-once-cell-1))
#:cargo-development-inputs
(("rust-gir-format-check" ,rust-gir-format-check-0.1))))
(native-inputs
(list pkg-config))
(inputs
(list gdk-pixbuf))
(home-page "https://gtk-rs.org/")
(synopsis "Rust bindings for the GdkPixbuf library")
(description "Rust bindings for the @code{GdkPixbuf} library")
(license license:expat)))
(define-public rust-gdk-pixbuf-0.15 (define-public rust-gdk-pixbuf-0.15
(package (package
(inherit rust-gdk-pixbuf-0.17)
(name "rust-gdk-pixbuf") (name "rust-gdk-pixbuf")
(version "0.15.11") (version "0.15.11")
(source (source
@ -519,7 +552,6 @@ (define-public rust-gdk-pixbuf-0.15
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "16k1z21r76m620z61kfmgid1n6s8dnxpa4zlrppcr6dhr2fdsf5d")))) (base32 "16k1z21r76m620z61kfmgid1n6s8dnxpa4zlrppcr6dhr2fdsf5d"))))
(build-system cargo-build-system)
(arguments (arguments
`(;; FIXME: error[E0277]: `Errors` doesn't implement `std::fmt::Display` `(;; FIXME: error[E0277]: `Errors` doesn't implement `std::fmt::Display`
#:tests? #f #:tests? #f
@ -530,15 +562,7 @@ (define-public rust-gdk-pixbuf-0.15
("rust-glib" ,rust-glib-0.15) ("rust-glib" ,rust-glib-0.15)
("rust-libc" ,rust-libc-0.2)) ("rust-libc" ,rust-libc-0.2))
#:cargo-development-inputs #:cargo-development-inputs
(("rust-gir-format-check" ,rust-gir-format-check-0.1)))) (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
(native-inputs
(list pkg-config))
(inputs
(list gdk-pixbuf))
(home-page "https://gtk-rs.org/")
(synopsis "Rust bindings for the GdkPixbuf library")
(description "Rust bindings for the GdkPixbuf library")
(license license:expat)))
(define-public rust-gdk-pixbuf-0.14 (define-public rust-gdk-pixbuf-0.14
(package (package