(use-modules (guix packages) (guix git-download) (guix build-system go) ((guix licenses) #:prefix license:) (guix gexp)) (define-public go-github-com-go-chi-chi-v5 (package (name "go-github-com-go-chi-chi-v5") (version "5.0.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/go-chi/chi") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0rzrsxz4xj0973c6nxklvq2vmg2m795snhk25836i0gnd1jnx79k")) ;; This certificate used by tests will eventually expire, ;; so remove it and the test that uses this certificate ;; to avoid future build failures. (snippet #~(begin (for-each delete-file '("testdata/cert.pem" "testdata/key.pem" "middleware/middleware_test.go")))))) (build-system go-build-system) (arguments '(#:import-path "github.com/go-chi/chi/v5")) (home-page "https://github.com/go-chi/chi") (synopsis "Composable router for HTTP services written in Go") (description "@code{go-github-com-go-chi-chi-v5} is a HTTP router that lets you decompose request handling into many smaller layers.") (license license:expat))) go-github-com-go-chi-chi-v5