1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-12 18:10:47 +02:00

gnu: go-github-com-rakyll-statik: Move to golang-xyz.

* gnu/packages/golang.scm (go-github-com-rakyll-statik): Move from here
...
* gnu/packages/golang-xyz.scm: ...  to here.

Change-Id: I02d155318c585b6d2e5bb243305a687c40a8ba44
This commit is contained in:
Sharlatan Hellseher 2025-02-13 17:33:35 +00:00
parent 983562fc42
commit ff6929fb97
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
2 changed files with 41 additions and 41 deletions

View file

@ -1691,47 +1691,6 @@ management interface. It can be used to monitor and control an OpenVPN process
running with its management port enabled.")
(license license:expat))))
(define-public go-github-com-rakyll-statik
(package
(name "go-github-com-rakyll-statik")
(version "0.1.7")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/rakyll/statik")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(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
(list
#:import-path "github.com/rakyll/statik"
#:test-flags
#~(list "-skip"
(string-join
(list
"TestOpen/Files_should_retain_their_original_file*"
"TestOpen/Images_should_successfully_unpack"
"TestOpen/'index.html'_files_should_be_returned*"
"TestOpen/listed_all_sub_directories_in_deep_directory"
"TestOpen/Paths_containing_dots_should_be_properly_sanitized")
"|"))))
(home-page "https://github.com/rakyll/statik/")
(synopsis "Embed files into a Go executable")
(description "Statik allows you to embed a directory of static files into
your Go binary to be later served from an http.FileSystem.")
(license license:asl2.0)))
(define-public go-gopkg.in-tomb.v2
(let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
(revision "0"))