mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-13 02:20:53 +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:
parent
983562fc42
commit
ff6929fb97
2 changed files with 41 additions and 41 deletions
|
@ -13184,6 +13184,47 @@ without configuration, but if desired, everything can be customized down to the
|
||||||
smallest detail.")
|
smallest detail.")
|
||||||
(license license:expat)))
|
(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-github-com-raulk-go-watchdog
|
(define-public go-github-com-raulk-go-watchdog
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-raulk-go-watchdog")
|
(name "go-github-com-raulk-go-watchdog")
|
||||||
|
|
|
@ -1691,47 +1691,6 @@ management interface. It can be used to monitor and control an OpenVPN process
|
||||||
running with its management port enabled.")
|
running with its management port enabled.")
|
||||||
(license license:expat))))
|
(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
|
(define-public go-gopkg.in-tomb.v2
|
||||||
(let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
|
(let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
|
||||||
(revision "0"))
|
(revision "0"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue