mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-04 18:07:24 +01:00
gnu: go-github-com-rakyll-statik: Fix building with go-1.18+.
* gnu/packages/golang.scm (go-github-com-rakyll-statik)[source]: Add snippet to allow building with a newer go.
This commit is contained in:
parent
fe554337de
commit
8490327e53
1 changed files with 8 additions and 1 deletions
|
@ -2070,7 +2070,14 @@ (define-public go-github-com-rakyll-statik
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0y0kbzma55vmyqhyrw9ssgvxn6nw7d0zg72a7nz8vp1zly4hs6va"))))
|
(base32 "0y0kbzma55vmyqhyrw9ssgvxn6nw7d0zg72a7nz8vp1zly4hs6va"))
|
||||||
|
(snippet
|
||||||
|
#~(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
;; Fix compatibility with go-1.18+
|
||||||
|
(substitute* "statik.go"
|
||||||
|
(("fmt\\.Println\\(helpText\\)")
|
||||||
|
"fmt.Print(helpText + \"\\n\")"))))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:import-path "github.com/rakyll/statik"))
|
`(#:import-path "github.com/rakyll/statik"))
|
||||||
|
|
Loading…
Reference in a new issue