From 2d9c30010f4421a68e93b2cca4f36f069705e579 Mon Sep 17 00:00:00 2001 From: Patrick Norton Date: Sat, 28 Mar 2026 08:16:44 -0400 Subject: [PATCH] gnu: image: Add qoi. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/image.scm (qoi): New variable. Change-Id: Ic08ed3aaf48cc12d9e730373400c22a424d8d0d0 Signed-off-by: Ludovic Courtès --- gnu/packages/image.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 2698494457..21430021b5 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -2028,6 +2028,34 @@ possible, all formats supported by the PNG standard are represented.") use, copy, modify and distribute these images for any purpose and without fee is hereby granted.")))) +(define-public qoi + (let ((commit "6fff9b70dd79b12f808b0acc5cb44fde9998725e") + (revision "0")) + (package + (name "qoi") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/phoboslab/qoi") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "078zasncyylgnwx6br82nkjssl82wygz6fh8zm65fbfpadzfa3x7")))) + (build-system copy-build-system) + (arguments + (list + #:install-plan + #~'(("qoi.h" "include/")) + #:tests? #f)) ;No tests + (home-page "https://qoiformat.org") + (synopsis "Library for the QOI image format") + (description + "This package provides a library for the QOI image format, offering +fast, lossless image compression.") + (license license:expat)))) + (define-public libjpeg-turbo (package (name "libjpeg-turbo")