sharlatan pushed a commit to branch go-team in repository guix. commit 6120a6cd642b327b2aaef32e30b1f429d5be7440 Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Thu Feb 13 12:51:11 2025 +0000
gnu: Add go-github-com-chai2010-webp. It was proposed in #62284 on <2023-03-20>. * gnu/packages/golang-xyz.scm (go-github-com-chai2010-webp): New variable. Co-authored-by: conses <cont...@conses.eu> Co-authored-by: Miguel Ángel Moreno <m...@migalmoreno.com> Change-Id: I527296ef658262f3abcf5703c5330e9bb0ccab9e --- gnu/packages/golang-xyz.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6b0f31015e..4f11737e32 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -39,23 +39,25 @@ ;;; Copyright © 2023 Fries <fries1...@protonmail.com> ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space> ;;; Copyright © 2023 Katherine Cox-Buday <cox.katherin...@gmail.com> +;;; Copyright © 2023 Miguel Ángel Moreno <m...@migalmoreno.com> ;;; Copyright © 2023 Nguyễn Gia Phong <mcsi...@disroot.org> ;;; Copyright © 2023 Nicolas Graves <ngra...@ngraves.fr> ;;; Copyright © 2023 Sergey Trofimov <s...@sarg.org.ru> ;;; Copyright © 2023 Thomas Ieong <th.ie...@free.fr> ;;; Copyright © 2023 Timo Wilken <g...@twilken.net> ;;; Copyright © 2023 Wilko Meyer <w...@wmeyer.eu> +;;; Copyright © 2023 conses <cont...@conses.eu> ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.art...@gmail.com> ;;; Copyright © 2024 Brian Kubisiak <br...@kubisiak.com> ;;; Copyright © 2024 Herman Rimm <her...@rimm.ee> ;;; Copyright © 2024 Jean Simard <woshila...@tuziwo.info> ;;; Copyright © 2024 Jesse Eisses <jesse@eisses.email> ;;; Copyright © 2024 Luis Higino <luishenriquegh2...@gmail.com> +;;; Copyright © 2024 Roman Scherer <ro...@burningswell.com> ;;; Copyright © 2024 Simen Endsjø <cont...@simendsjo.me> ;;; Copyright © 2024 Spencer Peters <spencerpet...@protonmail.com> ;;; Copyright © 2024 Troy Figiel <t...@troyfigiel.com> ;;; Copyright © 2024 gemmaro <gemmaro....@gmail.com> -;;; Copyright © 2024 Roman Scherer <ro...@burningswell.com> ;;; Copyright © 2025 Ashvith Shetty <ashvithshetty0...@zohomail.in> ;;; ;;; This file is part of GNU Guix. @@ -2548,6 +2550,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")