mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-13 10:30:43 +02:00
gnu: Add go-go-mau-fi-webp.
* gnu/packages/golang-xyz.scm (go-go-mau-fi-webp): New variable. Change-Id: I5a8b7f25085bb99d3bc7798ec90a1fbc73fc36e3
This commit is contained in:
parent
98dbc22265
commit
cf68c1c546
1 changed files with 50 additions and 0 deletions
|
@ -16762,6 +16762,56 @@ MySQL.")
|
||||||
written in Go, as well as some other related libraries like whatsmeow.")
|
written in Go, as well as some other related libraries like whatsmeow.")
|
||||||
(license license:mpl2.0)))
|
(license license:mpl2.0)))
|
||||||
|
|
||||||
|
(define-public go-go-mau-fi-webp
|
||||||
|
(package
|
||||||
|
(name "go-go-mau-fi-webp")
|
||||||
|
(version "0.2.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/tulir/webp")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0g2m162kmnz1d2zpmbgja330q1p9ygdryllfzm71zr7d5pr9fc13"))
|
||||||
|
(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$"))
|
||||||
|
;; An Apple user was here (mem).
|
||||||
|
(for-each delete-file
|
||||||
|
(find-files "^\\.DS_Store$"))))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "go.mau.fi/webp"
|
||||||
|
;; reader_test.go:34: image: unknown format
|
||||||
|
#:test-flags #~(list "-skip" "TestDecode")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'remove-benchmarks
|
||||||
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(delete-file-recursively "bench"))))
|
||||||
|
(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://go.mau.fi/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. It's a maintained
|
||||||
|
fork of @code{github.com/chai2010/webp}.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public go-go-mongodb-org-mongo-driver
|
(define-public go-go-mongodb-org-mongo-driver
|
||||||
(package
|
(package
|
||||||
(name "go-go-mongodb-org-mongo-driver")
|
(name "go-go-mongodb-org-mongo-driver")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue