From bb6c91c9b9a924a8af87aad324960974f4a5ea8c Mon Sep 17 00:00:00 2001 From: Leo Nikkilä Date: Wed, 21 Aug 2024 21:46:26 +0100 Subject: gnu: Add go-github-com-shurcool-httpfs. * gnu/packages/golang-web.scm (go-github-com-shurcool-httpfs): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: Ie0413ac3c9bd50365f197b2c6f6ec4f00fbc0d97 --- gnu/packages/golang-web.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index c252470815..b7a1b71d0b 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3605,6 +3605,43 @@ of the specification.") support.") (license license:expat))) +(define-public go-github-com-shurcool-httpfs + (package + (name "go-github-com-shurcool-httpfs") + (version "0.0.0-20230704072500-f1e31cf0ba5c") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shurcooL/httpfs") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1m0jjnfzr8372cjx0zjm2zm695kwaz8l1yk7gzgn05biadsklprm")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/shurcooL/httpfs" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (delete 'build) + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (native-inputs + (list go-golang-org-x-tools)) + (propagated-inputs + (list go-github-com-shurcool-httpgzip)) + (home-page "https://github.com/shurcooL/httpfs") + (synopsis "Utilities for @code{http.FileSystem}") + (description + "Collection of Go packages for working with the +@code{http.FileSystem} +interface.") + (license license:expat))) + (define-public go-github-com-shurcool-httpgzip (package (name "go-github-com-shurcool-httpgzip") -- cgit v1.2.3