X-Git-Url: https://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/224358df605e9b24324efd02ad38ebb2b2fa73a0..4363b542f276b4d6a5a8cc4c85d527fd53fb5261:/gnu/packages/crates-graphics.scm diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 63e65a1d70..d67e9dc02f 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 Valentin Ignatev ;;; Copyright © 2020 Hartmut Goebel -;;; Copyright © 2020 Efraim Flashner +;;; Copyright © 2020, 2021 Efraim Flashner ;;; Copyright © 2020 John Soo ;;; Copyright © 2020 Gabriel Arazas ;;; Copyright © 2020 Raghav Gururajan @@ -42,8 +42,36 @@ ;;; ;;; Please: Try to add new module packages in alphabetic order. +(define-public rust-andrew-0.3 + (package + (name "rust-andrew") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "andrew" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1kx79z6mh7wwp4pz683bdya54h7w7wpzjcwf834fwbv4vl4znjlc")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-rusttype" ,rust-rusttype-0.9) + ("rust-walkdir" ,rust-walkdir-2) + ("rust-xdg" ,rust-xdg-2) + ("rust-xml-rs" ,rust-xml-rs-0.8)))) + (home-page "https://github.com/trimental/andrew") + (synopsis "Provides convenient drawing of objects to buffers") + (description + "The @code{andrew} crate provides convenient drawing of objects such as +shapes, lines and text to buffers.") + (license license:expat))) + (define-public rust-andrew-0.2 (package + (inherit rust-andrew-0.3) (name "rust-andrew") (version "0.2.1") (source @@ -55,7 +83,6 @@ (sha256 (base32 "0pmklwcwy8g1jras46fz8xcny779zfqpg4riksrbdhkjk3w0jzwv")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) @@ -67,13 +94,7 @@ #:cargo-development-inputs (("rust-smithay-client-toolkit" ,rust-smithay-client-toolkit-0.4)))) (inputs - `(("wayland" ,wayland))) - (home-page "https://github.com/trimental/andrew") - (synopsis "Provides convenient drawing of objects to buffers") - (description - "The @code{andrew} crate provides convenient drawing of objects such as -shapes, lines and text to buffers.") - (license license:expat))) + `(("wayland" ,wayland))))) (define-public rust-ansi-colours-1 (package @@ -185,7 +206,7 @@ text or blue underlined text, on ANSI terminals.") (arguments `(#:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.54) - ("rust-metadeps" ,rust-metadeps-1.1)))) + ("rust-metadeps" ,rust-metadeps-1)))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs @@ -215,7 +236,7 @@ text or blue underlined text, on ANSI terminals.") (arguments `(#:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.53) - ("rust-metadeps" ,rust-metadeps-1.1)))) + ("rust-metadeps" ,rust-metadeps-1)))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs @@ -248,6 +269,31 @@ the term library to handle the ANSI nonsense and hence it works on Windows, Mac, and Unix.") (license (list license:asl2.0 license:expat)))) +(define-public rust-avif-serialize-0.6 + (package + (name "rust-avif-serialize") + (version "0.6.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "avif-serialize" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "130wq838lslkcqcp2kjci7q3aq9qpir07pvxndc81xqbn63wvdjg")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-arrayvec" ,rust-arrayvec-0.5)))) + (home-page "https://lib.rs/avif-serialize") + (synopsis "Writer for AVIF header structure (MPEG/HEIF/MIAF/ISO-BMFF)") + (description + "This package provides a minimal writer for AVIF header structure. This +is a tiny alternative to @code{libavif}. It creates the jungle of +MPEG/HEIF/MIAF/ISO-BMFF ``boxes'' as appropriate for AVIF files. It supports +alpha channel embedding.") + (license license:bsd-3))) + (define-public rust-cgl-0.3 (package (name "rust-cgl") @@ -350,17 +396,17 @@ for computer graphics.") (;("rust-glium" ,rust-glium-0.19) ("rust-serde-json" ,rust-serde-json-1)))))) -(define-public rust-core-graphics-0.21 +(define-public rust-core-graphics-0.22 (package (name "rust-core-graphics") - (version "0.21.1") + (version "0.22.2") (source (origin (method url-fetch) (uri (crate-uri "core-graphics" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "1i9gwzkil9k276317by0mi1pxz036h412dmcp1bzmlq4adj5anha")))) + (base32 "11lx6xw8nc9fpd552g60qa0cxh0maah8j2m26vkq0aslkgv3b7r6")))) (build-system cargo-build-system) (arguments `(#:skip-build? #t @@ -376,6 +422,27 @@ for computer graphics.") "This package provides bindings to Core Graphics for macOS.") (license (list license:expat license:asl2.0)))) +(define-public rust-core-graphics-0.21 + (package + (inherit rust-core-graphics-0.22) + (name "rust-core-graphics") + (version "0.21.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "core-graphics" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1i9gwzkil9k276317by0mi1pxz036h412dmcp1bzmlq4adj5anha")))) + (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.3) + ("rust-libc" ,rust-libc-0.2)))))) + (define-public rust-core-graphics-0.19 (package (inherit rust-core-graphics-0.21) @@ -489,7 +556,7 @@ and iOS.") (arguments `(#:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.54) - ("rust-metadeps" ,rust-metadeps-1.1)))) + ("rust-metadeps" ,rust-metadeps-1)))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs @@ -527,6 +594,30 @@ and iOS.") (description "Geometry primitives written in Rust.") (license (list license:expat license:asl2.0)))) +(define-public rust-eui48-0.3 + (package + (name "rust-eui48") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "eui48" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0mmdhczfdxwv5v5h90ydqkx0mdqiv0h2clshm2cm4qlwp0gacw29")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-rustc-serialize" ,rust-rustc-serialize-0.3) + ("rust-serde" ,rust-serde-1)))) + (home-page "https://github.com/abaumhauer/eui48") + (synopsis "Library to generate and parse IEEE EUI-48 and EUI-64") + (description + "This package provides a library to generate and parse IEEE EUI-48 and +EUI-64, also known as MAC-48 media access control addresses.") + (license (list license:expat license:asl2.0)))) + (define-public rust-gfx-0.18 (package (name "rust-gfx") @@ -630,8 +721,31 @@ and iOS.") "This package provides OpenGL bindings for gfx, based on gl-rs.") (license license:asl2.0))) +(define-public rust-gif-0.11 + (package + (name "rust-gif") + (version "0.11.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "gif" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1i4n9fwg3zrp07pi5zsgyza2gl8lqnap6fj6875lfy121xbbmvq2")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-color-quant" ,rust-color-quant-1) + ("rust-weezl" ,rust-weezl-0.1)))) + (home-page "https://github.com/image-rs/image-gif") + (synopsis "GIF decoder and encoder") + (description "This package provides a GIF decoder and encoder in Rust.") + (license (list license:expat license:asl2.0)))) + (define-public rust-gif-0.10 (package + (inherit rust-gif-0.11) (name "rust-gif") (version "0.10.3") (source @@ -643,19 +757,14 @@ and iOS.") (sha256 (base32 "1bw174f7civdfgryvc8pvyhicpr96hzdajnda4s3y8iv3ch907a7")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; tests not included in release #:cargo-inputs - (("rust-color-quant" ,rust-color-quant-1.0) + (("rust-color-quant" ,rust-color-quant-1) ("rust-libc" ,rust-libc-0.2) ("rust-lzw" ,rust-lzw-0.10)) #:cargo-development-inputs - (("rust-glob" ,rust-glob-0.3)))) - (home-page "https://github.com/image-rs/image-gif") - (synopsis "GIF decoder and encoder") - (description "This package provides a GIF decoder and encoder in Rust.") - (license (list license:expat license:asl2.0)))) + (("rust-glob" ,rust-glob-0.3)))))) (define-public rust-gl-0.11 (package @@ -1001,44 +1110,89 @@ and iOS.") (description "This package provides wgl bindings for glutin.") (license license:asl2.0))) +(define-public rust-ical-0.7 + (package + (name "rust-ical") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ical" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1kvk1pgas67rnp0n4424lxxs8y3n1h0fw3ap8jbfcxqdmlap57sa")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-thiserror" ,rust-thiserror-1)))) + (home-page "https://github.com/Peltoche/ical-rs") + (synopsis "Ical/Vcard parser for Rust") + (description + "This library parse the ICalendar format defined in RFC5545, as well as +similar formats like VCard.") + (license license:asl2.0))) + +(define-public rust-ichwh-0.3 + (package + (name "rust-ichwh") + (version "0.3.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "ichwh" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0m6628yw3l812hjknmh5b5gcvhn6as9gzjz60h54zjxyy4w5ss7a")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-async-std" ,rust-async-std-1) + ("rust-cfg-if" ,rust-cfg-if-0.1) + ("rust-futures" ,rust-futures-0.3) + ("rust-thiserror" ,rust-thiserror-1)))) + (home-page "https://gitlab.com/avandesa/ichwh-rs") + (synopsis "Asynchronous implementation of @command{which}") + (description + "@code{ichwh} aims to be a fully-asynchronous clone of GNU which. The +main job of @command{which} is to search for executables on the current +PATH.") + (license license:expat))) + (define-public rust-image-0.23 (package (name "rust-image") - (version "0.23.6") + (version "0.23.12") (source - (origin - (method url-fetch) - (uri (crate-uri "image" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1d2a80k7pwqshliqi5fw1dwkz7q9zd6pjnwpw8zxc1v4xhzmbc5m")))) + (origin + (method url-fetch) + (uri (crate-uri "image" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1dg9z5sbc389spp7pm23n2b1k0gdd8hjdb8hhsp3k3npx9vl1q3w")))) (build-system cargo-build-system) (arguments - `(#:tests? #f ; Some test images are missing from the release. + `(#:skip-build? #t #:cargo-inputs (("rust-bytemuck" ,rust-bytemuck-1) ("rust-byteorder" ,rust-byteorder-1) - ("rust-gif" ,rust-gif-0.10) + ("rust-color-quant" ,rust-color-quant-1) + ("rust-gif" ,rust-gif-0.11) ("rust-jpeg-decoder" ,rust-jpeg-decoder-0.1) ("rust-num-iter" ,rust-num-iter-0.1) ("rust-num-rational" ,rust-num-rational-0.3) ("rust-num-traits" ,rust-num-traits-0.2) ("rust-png" ,rust-png-0.16) + ("rust-ravif" ,rust-ravif-0.6) + ("rust-rgb" ,rust-rgb-0.8) ("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1) - ("rust-tiff" ,rust-tiff-0.5)) - #:cargo-development-inputs - (("rust-crc32fast" ,rust-crc32fast-1) - ("rust-criterion" ,rust-criterion-0.3) - ("rust-glob" ,rust-glob-0.3) - ("rust-num-complex" ,rust-num-complex-0.3) - ("rust-quickcheck" ,rust-quickcheck-0.9)))) + ("rust-tiff" ,rust-tiff-0.6)))) (home-page "https://github.com/image-rs/image") (synopsis "Imaging library written in Rust") (description - "Imaging library written in Rust. Provides basic filters and decoders -for the most common image formats.") + "This package is an imaging library written in Rust. It provides basic +filters and decoders for the most common image formats.") (license license:expat))) (define-public rust-image-0.22 @@ -1135,6 +1289,26 @@ for the most common image formats.") ("rust-num-complex" ,rust-num-complex-0.2) ("rust-quickcheck" ,rust-quickcheck-0.6)))))) +(define-public rust-imgref-1 + (package + (name "rust-imgref") + (version "1.7.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "imgref" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "19dd5xss3nd40avv8az2kzicpxx71c2akiqznr616hki30w9vj07")))) + (build-system cargo-build-system) + (arguments `(#:skip-build? #t)) + (home-page "https://github.com/kornelski/imgref") + (synopsis "2D slice of a @code{Vec}") + (description + "This package provides a trivial struct for interchange of 2d-dimensional +pixel buffers with width, height and stride.") + (license license:cc0))) + (define-public rust-jpeg-decoder-0.1 (package (name "rust-jpeg-decoder") @@ -1293,7 +1467,7 @@ graphics and video games.") "The Piston game engine core libraries.") (license license:expat))) -(define-public rust-piston-float-1.0 +(define-public rust-piston-float-1 (package (name "rust-piston-float") (version "1.0.0") @@ -1410,7 +1584,7 @@ nicely with Piston libraries.") "This package provides a generic library for textures") (license license:expat))) -(define-public rust-piston-viewport-1.0 +(define-public rust-piston-viewport-1 (package (name "rust-piston-viewport") (version "1.0.0") @@ -1427,7 +1601,7 @@ nicely with Piston libraries.") (arguments `(#:skip-build? #t #:cargo-inputs - (("rust-piston-float" ,rust-piston-float-1.0)))) + (("rust-piston-float" ,rust-piston-float-1)))) (home-page "https://github.com/PistonDevelopers/viewport") (synopsis "Library for storing viewport information") (description @@ -1513,9 +1687,9 @@ nicely with Piston libraries.") (("rust-interpolation" ,rust-interpolation-0.2) ("rust-rusttype" ,rust-rusttype-0.7) ("rust-piston-texture" ,rust-piston-texture-0.8) - ("rust-piston-viewport" ,rust-piston-viewport-1.0) - ("rust-read-color" ,rust-read-color-1.0) - ("rust-vecmath" ,rust-vecmath-1.0) + ("rust-piston-viewport" ,rust-piston-viewport-1) + ("rust-read-color" ,rust-read-color-1) + ("rust-vecmath" ,rust-vecmath-1) ("rust-fnv" ,rust-fnv-1)))) (home-page "https://github.com/pistondevelopers/graphics") (synopsis "Library for 2D graphics that works with multiple back-ends") @@ -1593,7 +1767,7 @@ interactive applications.") (arguments `(#:skip-build? #t #:cargo-inputs - (("rust-piston-viewport" ,rust-piston-viewport-1.0) + (("rust-piston-viewport" ,rust-piston-viewport-1) ("rust-serde" ,rust-serde-1) ("rust-serde-derive" ,rust-serde-derive-1) ("rust-bitflags" ,rust-bitflags-1)))) @@ -1740,6 +1914,101 @@ interactive applications.") ("rust-glob" ,rust-glob-0.2) ("rust-term" ,rust-term-0.4)))))) +(define-public rust-rav1e-0.4 + (package + (name "rust-rav1e") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "rav1e" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "02cpgzycfgnflnv8sck6ajasa7abfgdzn6b4jv01sf6r21yfipbq")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-aom-sys" ,rust-aom-sys-0.2) + ("rust-arbitrary" ,rust-arbitrary-0.4) + ("rust-arg-enum-proc-macro" ,rust-arg-enum-proc-macro-0.3) + ("rust-arrayvec" ,rust-arrayvec-0.5) + ("rust-av-metrics" ,rust-av-metrics-0.6) + ("rust-backtrace" ,rust-backtrace-0.3) + ("rust-bitstream-io" ,rust-bitstream-io-1) + ("rust-byteorder" ,rust-byteorder-1) + ("rust-cc" ,rust-cc-1) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-clap" ,rust-clap-2) + ("rust-console" ,rust-console-0.14) + ("rust-crossbeam" ,rust-crossbeam-0.8) + ("rust-dav1d-sys" ,rust-dav1d-sys-0.3) + ("rust-fern" ,rust-fern-0.6) + ("rust-image" ,rust-image-0.23) + ("rust-interpolate-name" ,rust-interpolate-name-0.2) + ("rust-itertools" ,rust-itertools-0.10) + ("rust-ivf" ,rust-ivf-0.1) + ("rust-libc" ,rust-libc-0.2) + ("rust-libfuzzer-sys" ,rust-libfuzzer-sys-0.3) + ("rust-log" ,rust-log-0.4) + ("rust-nasm-rs" ,rust-nasm-rs-0.2) + ("rust-noop-proc-macro" ,rust-noop-proc-macro-0.3) + ("rust-num-derive" ,rust-num-derive-0.3) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-paste" ,rust-paste-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-rand-chacha" ,rust-rand-chacha-0.3) + ("rust-rayon" ,rust-rayon-1) + ("rust-regex" ,rust-regex-1) + ("rust-rust-hawktracer" ,rust-rust-hawktracer-0.7) + ("rust-rustc-version" ,rust-rustc-version-0.3) + ("rust-scan-fmt" ,rust-scan-fmt-0.2) + ("rust-serde" ,rust-serde-1) + ("rust-signal-hook" ,rust-signal-hook-0.3) + ("rust-simd-helpers" ,rust-simd-helpers-0.1) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-toml" ,rust-toml-0.5) + ("rust-v-frame" ,rust-v-frame-0.2) + ("rust-vergen" ,rust-vergen-3) + ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2) + ("rust-y4m" ,rust-y4m-0.7)))) + (home-page "https://github.com/xiph/rav1e") + (synopsis "Fast and safe AV1 encoder") + (description + "@code{rav1e} is an AV1 video encoder. It is designed to eventually +cover all use cases, though in its current form it is most suitable for cases +where libaom (the reference encoder) is too slow.") + (license license:bsd-2))) + +(define-public rust-ravif-0.6 + (package + (name "rust-ravif") + (version "0.6.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "ravif" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1gyc7w1fz3qdk95cdpkj185dm6lskxfp329xm69waxc565fcz9rx")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-avif-serialize" ,rust-avif-serialize-0.6) + ("rust-imgref" ,rust-imgref-1) + ("rust-loop9" ,rust-loop9-0.1) + ("rust-num-cpus" ,rust-num-cpus-1) + ("rust-rav1e" ,rust-rav1e-0.4) + ("rust-rayon" ,rust-rayon-1) + ("rust-rgb" ,rust-rgb-0.8)))) + (home-page "https://lib.rs/ravif") + (synopsis "Library for encoding images in AVIF format") + (description + "This package is a rav1e-based pure Rust library for encoding images in +AVIF format.") + (license license:bsd-3))) + (define-public rust-raw-window-handle-0.3 (package (name "rust-raw-window-handle") @@ -1788,7 +2057,7 @@ interactive applications.") (define-public rust-rgb-0.8 (package (name "rust-rgb") - (version "0.8.20") + (version "0.8.25") (source (origin (method url-fetch) @@ -1796,7 +2065,7 @@ interactive applications.") (file-name (string-append name "-" version ".crate")) (sha256 (base32 - "1620mn5dp1rr9fpvd9wbr3b8l2g4zrij8zjri1x34cg1bas59vwh")))) + "1lrv3x5h1lvdzg1qqr8aiysz978m35zpjdkyicnvkarnh8zkqzr8")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs @@ -1814,8 +2083,41 @@ implements standard Rust traits to make `RGB`/`RGBA` pixels and slices first-class Rust objects.") (license license:expat))) +(define-public rust-smithay-client-toolkit-0.12 + (package + (name "rust-smithay-client-toolkit") + (version "0.12.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "smithay-client-toolkit" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1rjdszpf8pns99gyy8f5axf01ckc33f30dddfazyfg45xfii6vii")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-andrew" ,rust-andrew-0.3) + ("rust-bitflags" ,rust-bitflags-1) + ("rust-calloop" ,rust-calloop-0.6) + ("rust-dlib" ,rust-dlib-0.4) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-log" ,rust-log-0.4) + ("rust-memmap2" ,rust-memmap2-0.1) + ("rust-nix" ,rust-nix-0.18) + ("rust-wayland-client" ,rust-wayland-client-0.28) + ("rust-wayland-cursor" ,rust-wayland-cursor-0.28) + ("rust-wayland-protocols" ,rust-wayland-protocols-0.28)))) + (home-page "https://github.com/smithay/client-toolkit") + (synopsis "Toolkit for making client Wayland applications") + (description + "This package provides a toolkit for making client Wayland applications.") + (license license:expat))) + (define-public rust-smithay-client-toolkit-0.6 (package + (inherit rust-smithay-client-toolkit-0.12) (name "rust-smithay-client-toolkit") (version "0.6.4") (source @@ -1827,7 +2129,6 @@ first-class Rust objects.") (sha256 (base32 "0m20687zs36l6xak2s5k9s7qp78ly8xfjpbmrhacp7whfn4hx5lk")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-andrew" ,rust-andrew-0.2) @@ -1841,12 +2142,7 @@ first-class Rust objects.") #:cargo-development-inputs (("rust-byteorder" ,rust-byteorder-1) ("rust-image" ,rust-image-0.21) - ("rust-wayland-client" ,rust-wayland-client-0.23)))) - (home-page "https://github.com/smithay/client-toolkit") - (synopsis "Toolkit for making client wayland applications") - (description - "Toolkit for making client wayland applications.") - (license license:expat))) + ("rust-wayland-client" ,rust-wayland-client-0.23)))))) (define-public rust-smithay-client-toolkit-0.4 (package @@ -1878,8 +2174,33 @@ first-class Rust objects.") ("rust-image" ,rust-image-0.20) ("rust-wayland-client" ,rust-wayland-client-0.21)))))) +(define-public rust-smithay-clipboard-0.6 + (package + (name "rust-smithay-clipboard") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "smithay-clipboard" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "14dwisd56cbr80zf719l3fh0n8pm1fjmvry9lsbhdbccf8cv525b")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-smithay-client-toolkit" ,rust-smithay-client-toolkit-0.12) + ("rust-wayland-client" ,rust-wayland-client-0.28)))) + (home-page "https://github.com/smithay/smithay-clipboard") + (synopsis "Access to the Wayland clipboard for client applications") + (description + "This package provides access to the Wayland clipboard for client +applications.") + (license license:expat))) + (define-public rust-smithay-clipboard-0.3 (package + (inherit rust-smithay-clipboard-0.6) (name "rust-smithay-clipboard") (version "0.3.6") (source @@ -1891,7 +2212,6 @@ first-class Rust objects.") (sha256 (base32 "1h7qhcx44cgwncgpn5llky0c56vgsg9mqrkybb2z37vsxxia4rwn")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-nix" ,rust-nix-0.14) @@ -1899,16 +2219,35 @@ first-class Rust objects.") #:cargo-development-inputs (("rust-andrew" ,rust-andrew-0.2)))) (inputs - `(("wayland" ,wayland))) - (home-page "https://github.com/smithay/smithay-clipboard") - (synopsis - "Provides access to the wayland clipboard for client applications") + `(("wayland" ,wayland))))) + +(define-public rust-tiff-0.6 + (package + (name "rust-tiff") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "tiff" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ds48vs919ccxa3fv1www7788pzkvpg434ilqkq7sjb5dmqg8lws")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-jpeg-decoder" ,rust-jpeg-decoder-0.1) + ("rust-miniz-oxide" ,rust-miniz-oxide-0.4) + ("rust-weezl" ,rust-weezl-0.1)))) + (home-page "https://github.com/image-rs/image-tiff") + (synopsis "TIFF decoding and encoding library in pure Rust") (description - "This package provides access to the wayland clipboard for client applications.") + "This package provides TIFF decoding and encoding library in pure Rust.") (license license:expat))) (define-public rust-tiff-0.5 (package + (inherit rust-tiff-0.6) (name "rust-tiff") (version "0.5.0") (source @@ -1920,19 +2259,12 @@ first-class Rust objects.") (sha256 (base32 "0bzzvxcx21pzryxgd7x7a1himiqs2y4k55754wzlr56sqj3qlfrz")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; not all test files included #:cargo-inputs (("rust-byteorder" ,rust-byteorder-1) ("rust-lzw" ,rust-lzw-0.10) - ("rust-miniz-oxide" ,rust-miniz-oxide-0.3)))) - (home-page "https://github.com/image-rs/image-tiff") - (synopsis - "TIFF decoding and encoding library in pure Rust") - (description - "TIFF decoding and encoding library in pure Rust.") - (license license:expat))) + ("rust-miniz-oxide" ,rust-miniz-oxide-0.3)))))) (define-public rust-tiff-0.3 (package @@ -1979,8 +2311,40 @@ first-class Rust objects.") ("rust-num-derive" ,rust-num-derive-0.2) ("rust-num-traits" ,rust-num-traits-0.2)))))) +(define-public rust-wayland-client-0.28 + (package + (name "rust-wayland-client") + (version "0.28.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "wayland-client" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1mxnflzv9s3qpcp0z7kqvrzki5bknfar9n9yky06f8ivs00vxgdx")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-downcast-rs" ,rust-downcast-rs-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-nix" ,rust-nix-0.18) + ("rust-scoped-tls" ,rust-scoped-tls-1) + ("rust-wayland-commons" ,rust-wayland-commons-0.28) + ("rust-wayland-scanner" ,rust-wayland-scanner-0.28) + ("rust-wayland-sys" ,rust-wayland-sys-0.28)))) + (home-page "https://github.com/smithay/wayland-rs") + (synopsis + "Rust bindings to the standard C implementation of the wayland protocol") + (description + "This package provides Rust bindings to the standard C implementation of +the wayland protocol, client side.") + (license license:expat))) + (define-public rust-wayland-client-0.23 (package + (inherit rust-wayland-client-0.28) (name "rust-wayland-client") (version "0.23.6") (source @@ -1992,7 +2356,6 @@ first-class Rust objects.") (sha256 (base32 "1nmw2kz70llc5mxwzg6bglnqy0qnyr9224zjmq9czazgw3mq045g")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) @@ -2006,14 +2369,7 @@ first-class Rust objects.") ("rust-wayland-scanner" ,rust-wayland-scanner-0.23)) #:cargo-development-inputs (("rust-byteorder" ,rust-byteorder-1) - ("rust-tempfile" ,rust-tempfile-3)))) - (home-page "https://github.com/smithay/wayland-rs") - (synopsis - "Rust bindings to the standard C implementation of the wayland protocol") - (description - "This package provides Rust bindings to the standard C implementation of -the wayland protocol, client side.") - (license license:expat))) + ("rust-tempfile" ,rust-tempfile-3)))))) (define-public rust-wayland-client-0.21 (package @@ -2232,8 +2588,36 @@ extensions.") ("rust-wayland-sys" ,rust-wayland-sys-0.21) ("rust-wayland-scanner" ,rust-wayland-scanner-0.21)))))) +(define-public rust-wayland-scanner-0.28 + (package + (name "rust-wayland-scanner") + (version "0.28.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "wayland-scanner" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0g8ky63qk27in7zajycj3fyydsxlj19hanfcvr8d7z5kcxbvl43h")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-xml-rs" ,rust-xml-rs-0.8)))) + (home-page "https://github.com/smithay/wayland-rs") + (synopsis "Generate Rust APIs from XML Wayland protocol files") + (description + "Wayland Scanner generates Rust APIs from XML Wayland protocol files. +It is intended for use with wayland-sys. You should only need this crate if +you are working on custom Wayland protocol extensions. Look at the +wayland-client crate for usable bindings.") + (license license:expat))) + (define-public rust-wayland-scanner-0.23 (package + (inherit rust-wayland-scanner-0.28) (name "rust-wayland-scanner") (version "0.23.6") (source @@ -2245,20 +2629,11 @@ extensions.") (sha256 (base32 "0g8wcphykjrcpslznyi3qccx1pckw97rckq5b295nfbg6r3j5c4k")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-0.4) ("rust-quote" ,rust-quote-0.6) - ("rust-xml-rs" ,rust-xml-rs-0.8)))) - (home-page "https://github.com/smithay/wayland-rs") - (synopsis "Generate Rust APIs from XML Wayland protocol files") - (description - "Wayland Scanner generates Rust APIs from XML Wayland protocol files. -It is intended for use with wayland-sys. You should only need this crate if -you are working on custom Wayland protocol extensions. -Look at the wayland-client crate for usable bindings.") - (license license:expat))) + ("rust-xml-rs" ,rust-xml-rs-0.8)))))) (define-public rust-wayland-scanner-0.21 (package @@ -2360,8 +2735,52 @@ the wayland protocol, server side.") ("rust-wayland-sys" ,rust-wayland-sys-0.21) ("rust-wayland-scanner" ,rust-wayland-scanner-0.21)))))) +(define-public rust-wayland-sys-0.28 + (package + (name "rust-wayland-sys") + (version "0.28.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "wayland-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "16f03jsy7q6p2wpaazc4w4kycyyk0fz7lacpdbcizl9m1i7874v7")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-dlib" ,rust-dlib-0.4) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-pkg-config" ,rust-pkg-config-0.3)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-libraries + (lambda* (#:key inputs #:allow-other-keys) + (let ((libwayland (assoc-ref inputs "wayland"))) + (substitute* (find-files "src" "\\.rs$") + (("libwayland.*\\.so" shared-lib) + (string-append libwayland "/lib/" shared-lib))) + #t)))))) + (inputs + `(("rust-dlib" ,rust-dlib-0.4) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-pkg-config" ,rust-pkg-config-0.3))) + (propagated-inputs + `(("wayland" ,wayland))) + (home-page "https://github.com/smithay/wayland-rs") + (synopsis "FFI bindings to the various @file{libwayland-*.so} libraries") + (description + "This package provides FFI bindings to the various +@file{libwayland-*.so} libraries. You should only need this crate if +you are working on custom Wayland protocol extensions. Look at the +crate @code{rust-wayland-client} for usable bindings.") + (license license:expat))) + (define-public rust-wayland-sys-0.23 (package + (inherit rust-wayland-sys-0.28) (name "rust-wayland-sys") (version "0.23.6") (source @@ -2373,19 +2792,14 @@ the wayland protocol, server side.") (sha256 (base32 "1x2qafvj8hd2x5qfaan2dfpw9amg0f5g9sqrkdy7qvbddsl8jknr")))) - (build-system cargo-build-system) (arguments - `(#:cargo-inputs + `(#:skip-build? #t + #:cargo-inputs (("rust-dlib" ,rust-dlib-0.4) ("rust-lazy-static" ,rust-lazy-static-1) ("rust-libc" ,rust-libc-0.2)))) - (home-page "https://github.com/smithay/wayland-rs") - (synopsis "FFI bindings to the various libwayland-*.so libraries") - (description - "FFI bindings to the various libwayland-*.so libraries. -You should only need this crate if you are working on custom wayland -protocol extensions. Look at the crate wayland-client for usable bindings.") - (license license:expat))) + (inputs `()) + (propagated-inputs `()))) (define-public rust-wayland-sys-0.21 (package @@ -2627,15 +3041,35 @@ the platform-specific getters provided by winit, or another library.") `(#:cargo-inputs (("rust-lazy-static" ,rust-lazy-static-1) ("rust-libc" ,rust-libc-0.2) - ("rust-maybe-uninit" ,rust-maybe-uninit-2.0) + ("rust-maybe-uninit" ,rust-maybe-uninit-2) ("rust-pkg-config" ,rust-pkg-config-0.3)))) (home-page "https://github.com/erlepereira/x11-rs.git") (synopsis "X11 library bindings for Rust") (description "This package provides X11 library bindings for Rust.") (license license:cc0))) +(define-public rust-y4m-0.7 + (package + (name "rust-y4m") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "y4m" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1bhdgb7hgx7j92nm6ij5n8wisp50j8ff66ks14jzwdw2mwhrjam7")))) + (build-system cargo-build-system) + (arguments `(#:skip-build? #t)) + (home-page "https://github.com/image-rs/y4m") + (synopsis "YUV4MPEG2 (@file{.y4m}) encoder and decoder") + (description + "This package provides a YUV4MPEG2 (@file{.y4m}) encoder and decoder.") + (license license:expat))) + (define-public rust-y4m-0.5 (package + (inherit rust-y4m-0.7) (name "rust-y4m") (version "0.5.3") (source @@ -2647,11 +3081,6 @@ the platform-specific getters provided by winit, or another library.") (sha256 (base32 "1933677by64y06zfgip2yq8b2dza8xnljhaksx93czq90b54kscz")))) - (build-system cargo-build-system) (arguments `(#:cargo-development-inputs - (("rust-resize" ,rust-resize-0.3)))) - (home-page "https://github.com/image-rs/y4m") - (synopsis "YUV4MPEG2 (.y4m) Encoder/Decoder.") - (description "YUV4MPEG2 (.y4m) Encoder/Decoder.") - (license license:expat))) + (("rust-resize" ,rust-resize-0.3))))))