summaryrefslogtreecommitdiff
path: root/nongnu/packages
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2026-02-08 00:55:29 +0800
committerHilton Chain <hako@ultrarare.space>2026-03-21 00:13:23 +0800
commitc977b297fcd5895265bcadcd96bf361b3b142237 (patch)
tree5aaa0e485cd915b6c7a2d2867190579fb61c18fa /nongnu/packages
parent2e1bb7fa331ef12ebf270387ec866837fd951028 (diff)
nongnu: hugo: Update to 0.158.0.
* modules/nongnu/packages/hugo.scm (hugo): Update to 0.158.0. [native-inputs]: Update vendored Go dependencies. Remove libwebp source. [arguments] <#:phases>: Remove now unnecessary libwebp fix. <#:go>: Use go 1.26. <#:build-flags, #:test-flags>: Remove ‘withdeploy’ tag.
Diffstat (limited to 'nongnu/packages')
-rw-r--r--nongnu/packages/hugo.scm39
1 files changed, 16 insertions, 23 deletions
diff --git a/nongnu/packages/hugo.scm b/nongnu/packages/hugo.scm
index a9b2445..c2f9f80 100644
--- a/nongnu/packages/hugo.scm
+++ b/nongnu/packages/hugo.scm
@@ -17,7 +17,7 @@
(define-public hugo
(package
(name "hugo")
- (version "0.152.2")
+ (version "0.158.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -26,19 +26,27 @@
(file-name (git-file-name name version))
(sha256
(base32
- "093p1k0m2n5b2bbk49kmciwr92wy9b8b4hw5wwmlhs2v304rw9cx"))))
+ "037f3nwn95zhs6i5vn21r8qg265g3zwjiapxnx3kam09v8jypz7g"))))
(build-system go-build-system)
(arguments
(list
- #:go go-1.24
+ #:go go-1.26
#:install-source? #f
#:import-path "."
#:build-flags
- #~(list "-tags" "extended withdeploy"
+ #~(list "-tags" "extended"
(string-append
"-ldflags="
" -X github.com/gohugoio/hugo/common/hugo.vendorInfo=Nonguix"))
- #:test-flags ''("-skip=^TestCommands/mod|^TestCommands/server")
+ #:test-flags
+ #~(list (string-append
+ "-skip="
+ (string-join
+ '("^TestCommands/hugo__static_issue14507" ;tries to use network.
+ "^TestCommands/mod"
+ "^TestCommands/server"
+ "^TestWithdeploy")
+ "|")))
#:test-subdirs ''(".")
#:modules
'(((guix build gnu-build-system) #:prefix gnu:)
@@ -59,20 +67,6 @@
(assoc-ref gnu:%standard-phases 'install-license-files))
(add-after 'unpack 'fix-paths
(lambda* (#:key native-inputs inputs #:allow-other-keys)
- (setenv
- "C_INCLUDE_PATH"
- (format #f "~a:~a"
- (getenv "C_INCLUDE_PATH")
- ((compose dirname dirname dirname)
- (search-input-file
- (or native-inputs inputs)
- "src/dec/alphai_dec.h"))))
- (with-directory-excursion "vendor/github.com/bep/gowebp"
- (substitute* (find-files "internal/libwebp")
- (("../../libwebp_src/(.*)\"" _ file)
- (format #f "~a\""
- (search-input-file
- (or native-inputs inputs) file)))))
(with-directory-excursion "vendor/github.com/bep/golibsass"
(substitute* (find-files "internal/libsass")
(("../../libsass_src/(.*)\"" _ file)
@@ -81,14 +75,13 @@
(or native-inputs inputs) file))))))))))
(native-inputs
(list (origin
- (method (go-mod-vendor #:go go-1.24))
+ (method (go-mod-vendor #:go go-1.26))
(uri (package-source this-package))
(file-name "vendored-go-dependencies")
(sha256
(base32
- "1yhk8as1jz5459bzkmqjwdp82xqsr7sx1m1jkkk58cfzagznpz78")))
- (package-source libsass)
- (package-source libwebp)))
+ "0kn2skk9zd2gga44smjnm8c8j2qzg1by6qbr089ri45qs3mh6smn")))
+ (package-source libsass)))
(home-page "https://gohugo.io/")
(synopsis "Static site generator written in Go")
(description