diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d3873c95e4..2fd7888eb9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -39,23 +39,25 @@ ;;; Copyright © 2023 Fries ;;; Copyright © 2023 Hilton Chain ;;; Copyright © 2023 Katherine Cox-Buday +;;; Copyright © 2023 Miguel Ángel Moreno ;;; Copyright © 2023 Nguyễn Gia Phong ;;; Copyright © 2023 Nicolas Graves ;;; Copyright © 2023 Sergey Trofimov ;;; Copyright © 2023 Thomas Ieong ;;; Copyright © 2023 Timo Wilken ;;; Copyright © 2023 Wilko Meyer +;;; Copyright © 2023 conses ;;; Copyright © 2024 Artyom V. Poptsov ;;; Copyright © 2024 Brian Kubisiak ;;; Copyright © 2024 Herman Rimm ;;; Copyright © 2024 Jean Simard ;;; Copyright © 2024 Jesse Eisses ;;; Copyright © 2024 Luis Higino +;;; Copyright © 2024 Roman Scherer ;;; Copyright © 2024 Simen Endsjø ;;; Copyright © 2024 Spencer Peters ;;; Copyright © 2024 Troy Figiel ;;; Copyright © 2024 gemmaro -;;; Copyright © 2024 Roman Scherer ;;; Copyright © 2025 Ashvith Shetty ;;; Copyright © 2025 Jussi Timperi ;;; Copyright © 2025 45mg <45mg.writes@gmail.com> @@ -2551,6 +2553,47 @@ encoding in Go.") over strings.") (license license:expat))) +(define-public go-github-com-chai2010-webp + (package + (name "go-github-com-chai2010-webp") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/chai2010/webp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1103iah700q9id04hz37nxbpb25qz13g1ia2r6gdffc3vh2w3riv")) + (modules '((guix build utils))) + ;; FIXME: The project indludes a copy of libwebp + ;; (internal/libwebp-1.5.0) which is availalbe in Guix, find out how to + ;; build it with it's source. + (snippet + #~(begin + ;; Remove files which were auto generated by 'go generate'. + (for-each delete-file + (find-files "." "^z_libwebp_src_.*\\.c$")))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/chai2010/webp" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'go-generate + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "generate"))))))) + (propagated-inputs + (list go-golang-org-x-image)) + (home-page "https://github.com/chai2010/webp") + (synopsis "WebP decoder and encoder for Golang") + (description + "Package webp implements a decoder and encoder for +@code{https://en.wikipedia.org/wiki/WebP, WebP} images.") + (license license:bsd-3))) + (define-public go-github-com-charlievieth-fastwalk (package (name "go-github-com-charlievieth-fastwalk")