sharlatan pushed a commit to branch go-team
in repository guix.
commit a6027969607b473c38d8d9f7f831be2115124387
Author: Sharlatan Hellseher <[email protected]>
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 <[email protected]>
Co-authored-by: Miguel Ángel Moreno <[email protected]>
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 ec0b868ace..4867d03d27 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -39,23 +39,25 @@
;;; Copyright © 2023 Fries <[email protected]>
;;; Copyright © 2023 Hilton Chain <[email protected]>
;;; Copyright © 2023 Katherine Cox-Buday <[email protected]>
+;;; Copyright © 2023 Miguel Ángel Moreno <[email protected]>
;;; Copyright © 2023 Nguyễn Gia Phong <[email protected]>
;;; Copyright © 2023 Nicolas Graves <[email protected]>
;;; Copyright © 2023 Sergey Trofimov <[email protected]>
;;; Copyright © 2023 Thomas Ieong <[email protected]>
;;; Copyright © 2023 Timo Wilken <[email protected]>
;;; Copyright © 2023 Wilko Meyer <[email protected]>
+;;; Copyright © 2023 conses <[email protected]>
;;; Copyright © 2024 Artyom V. Poptsov <[email protected]>
;;; Copyright © 2024 Brian Kubisiak <[email protected]>
;;; Copyright © 2024 Herman Rimm <[email protected]>
;;; Copyright © 2024 Jean Simard <[email protected]>
;;; Copyright © 2024 Jesse Eisses <[email protected]>
;;; Copyright © 2024 Luis Higino <[email protected]>
+;;; Copyright © 2024 Roman Scherer <[email protected]>
;;; Copyright © 2024 Simen Endsjø <[email protected]>
;;; Copyright © 2024 Spencer Peters <[email protected]>
;;; Copyright © 2024 Troy Figiel <[email protected]>
;;; Copyright © 2024 gemmaro <[email protected]>
-;;; Copyright © 2024 Roman Scherer <[email protected]>
;;; Copyright © 2025 Ashvith Shetty <[email protected]>
;;;
;;; 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")