me
/
guix
Archived
1
0
Fork 0

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.
master
Efraim Flashner 2023-02-11 18:42:07 +02:00
parent fe554337de
commit 8490327e53
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 8 additions and 1 deletions

View File

@ -2070,7 +2070,14 @@ for speed on short messages.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(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)
(arguments
`(#:import-path "github.com/rakyll/statik"))