diff options
| author | moksh <mysticmoksh@riseup.net> | 2026-08-20 13:27:52 +0530 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-08-26 22:06:12 +0100 |
| commit | 78a64eadc35e4be92ef78c1b3b0ca6d684ea9c1f (patch) | |
| tree | d5dd88d6152af97a698b88a5da2b5982bf8e5392 | |
| parent | 2ece836312127bc15204c2bc26846d1afa47778e (diff) | |
gnu: Add didder.
* gnu/packages/image.scm (didder): New variable.
Merges: guix/guix!10673
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/golang-xyz.scm | 1 | ||||
| -rw-r--r-- | gnu/packages/image.scm | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 11a62b71758..d465888f8ac 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm | |||
| @@ -82,6 +82,7 @@ | |||
| 82 | ;;; Copyright © 2026 Luca Kredel <luca.kredel@web.de> | 82 | ;;; Copyright © 2026 Luca Kredel <luca.kredel@web.de> |
| 83 | ;;; Copyright © 2026 Orahcio Felício de Sousa <orahcio@gmail.com> | 83 | ;;; Copyright © 2026 Orahcio Felício de Sousa <orahcio@gmail.com> |
| 84 | ;;; Copyright © 2026 Ryan Prior <rprior@protonmail.com> | 84 | ;;; Copyright © 2026 Ryan Prior <rprior@protonmail.com> |
| 85 | ;;; Copyright © 2026 Untrusem <mysticmoksh@riseup.net> | ||
| 85 | ;;; | 86 | ;;; |
| 86 | ;;; This file is part of GNU Guix. | 87 | ;;; This file is part of GNU Guix. |
| 87 | ;;; | 88 | ;;; |
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 7322f5e2cb9..24129e4c50a 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm | |||
| @@ -46,6 +46,7 @@ | |||
| 46 | ;;; Copyright © 2025 Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 46 | ;;; Copyright © 2025 Hugo Buddelmeijer <hugo@buddelmeijer.nl> |
| 47 | ;;; Copyright © 2026 Carlos Durán Domínguez <wurt@wurt.eu> | 47 | ;;; Copyright © 2026 Carlos Durán Domínguez <wurt@wurt.eu> |
| 48 | ;;; Copyright © 2026 Sughosha <sughosha@disroot.org> | 48 | ;;; Copyright © 2026 Sughosha <sughosha@disroot.org> |
| 49 | ;;; Copyright © 2026 Untrusem <mysticmoksh@riseup.net> | ||
| 49 | ;;; | 50 | ;;; |
| 50 | ;;; This file is part of GNU Guix. | 51 | ;;; This file is part of GNU Guix. |
| 51 | ;;; | 52 | ;;; |
| @@ -88,6 +89,9 @@ | |||
| 88 | #:use-module (gnu packages gl) | 89 | #:use-module (gnu packages gl) |
| 89 | #:use-module (gnu packages glib) | 90 | #:use-module (gnu packages glib) |
| 90 | #:use-module (gnu packages gnome) | 91 | #:use-module (gnu packages gnome) |
| 92 | #:use-module (gnu packages golang-build) | ||
| 93 | #:use-module (gnu packages golang-graphics) | ||
| 94 | #:use-module (gnu packages golang-xyz) | ||
| 91 | #:use-module (gnu packages graphics) | 95 | #:use-module (gnu packages graphics) |
| 92 | #:use-module (gnu packages gtk) | 96 | #:use-module (gnu packages gtk) |
| 93 | #:use-module (gnu packages guile) | 97 | #:use-module (gnu packages guile) |
| @@ -128,6 +132,7 @@ | |||
| 128 | #:use-module (guix build-system gnu) | 132 | #:use-module (guix build-system gnu) |
| 129 | #:use-module (guix build-system cmake) | 133 | #:use-module (guix build-system cmake) |
| 130 | #:use-module (guix build-system copy) | 134 | #:use-module (guix build-system copy) |
| 135 | #:use-module (guix build-system go) | ||
| 131 | #:use-module (guix build-system guile) | 136 | #:use-module (guix build-system guile) |
| 132 | #:use-module (guix build-system meson) | 137 | #:use-module (guix build-system meson) |
| 133 | #:use-module (guix build-system pyproject) | 138 | #:use-module (guix build-system pyproject) |
| @@ -182,6 +187,59 @@ | |||
| 182 | convert images in more than 100 different formats.") | 187 | convert images in more than 100 different formats.") |
| 183 | (license license:gpl3+))) | 188 | (license license:gpl3+))) |
| 184 | 189 | ||
| 190 | (define-public didder | ||
| 191 | (package | ||
| 192 | (name "didder") | ||
| 193 | ;; There have been feature addition like color quantization but no | ||
| 194 | ;; releases with the feature. | ||
| 195 | ;; See: <https://github.com/makew0rld/didder/issues/31>. | ||
| 196 | (properties '((commit . "408a18aef878b456fe5cdbec406070fd5bd5c2d2") | ||
| 197 | (revision . "0"))) | ||
| 198 | (version (git-version "1.3.0" | ||
| 199 | (assoc-ref properties 'revision) | ||
| 200 | (assoc-ref properties 'commit))) | ||
| 201 | (source | ||
| 202 | (origin | ||
| 203 | (method git-fetch) | ||
| 204 | (uri (git-reference | ||
| 205 | (url "https://github.com/makew0rld/didder") | ||
| 206 | (commit (assoc-ref properties 'commit)))) | ||
| 207 | (file-name (git-file-name name version)) | ||
| 208 | (sha256 | ||
| 209 | (base32 "12vpxzn8p6ay5zqm9g83v0mf4i5nmm1xp13bhygs2yr24pbkkr24")))) | ||
| 210 | (build-system go-build-system) | ||
| 211 | (arguments | ||
| 212 | (list | ||
| 213 | #:install-source? #f | ||
| 214 | #:build-flags | ||
| 215 | #~(list (string-append "-ldflags=" | ||
| 216 | "-X main.builtBy=Guix" | ||
| 217 | " -X main.version=" #$version | ||
| 218 | " -X main.commit=" #$version)) | ||
| 219 | #:import-path "github.com/makeworld-the-better-one/didder" | ||
| 220 | #:phases | ||
| 221 | #~(modify-phases %standard-phases | ||
| 222 | (add-after 'install 'install-man-page | ||
| 223 | (lambda* (#:key import-path #:allow-other-keys) | ||
| 224 | (let ((man1 (string-append #$output "/share/man/man1/")) | ||
| 225 | (page (format #f "src/~a/didder.1" import-path))) | ||
| 226 | (install-file page man1))))))) | ||
| 227 | (native-inputs | ||
| 228 | (list go-github-com-disintegration-imaging | ||
| 229 | go-github-com-joshdk-quantize | ||
| 230 | go-github-com-makeworld-the-better-one-dither-v2 | ||
| 231 | go-github-com-urfave-cli-v2 | ||
| 232 | go-golang-org-x-image)) | ||
| 233 | (home-page "https://github.com/makew0rld/didder") | ||
| 234 | (synopsis "Image Dithering Utility") | ||
| 235 | (description | ||
| 236 | "Didder is a command-line image dithering tool. It can also be used | ||
| 237 | for pipeline scripting. It is backed by | ||
| 238 | @url{https://github.com/makeworld-the-better-one/dither, dithering library}. | ||
| 239 | It provides various dithering algorithms and you can provide your own by | ||
| 240 | specifying a matrix in json format") | ||
| 241 | (license license:gpl3))) | ||
| 242 | |||
| 185 | (define-public gradia | 243 | (define-public gradia |
| 186 | (package | 244 | (package |
| 187 | (name "gradia") | 245 | (name "gradia") |
