Merge branch 'hugo-extended' into 'master'

nongnu: hugo: Update to extended version

See merge request nonguix/nonguix!643
This commit is contained in:
Fernando Ayats 2025-09-08 12:16:10 +02:00 committed by GitLab
commit 4ef3777134
No known key found for this signature in database

View file

@ -7,39 +7,50 @@
#:use-module ((guix licenses)
#:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils))
#:use-module (guix utils)
#:use-module (guix gexp)
#:use-module (gnu packages gcc)
#:use-module (gnu packages base))
(define-public hugo
(package
(name "hugo")
(version "0.140.2")
(version "0.145.0")
(source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/gohugoio/hugo/releases/download/v" version
"/" name "_" version "_linux-" (cond ((target-aarch64?)
"arm64")
((target-arm32?)
"arm")
((target-x86-64?)
"amd64")
(else "")) ".tar.gz"))
"https://github.com/gohugoio/hugo/releases/download/v"
version
"/"
name
"_extended_"
version
"_linux-"
(cond
((target-aarch64?)
"arm64")
((target-x86-64?)
"amd64")
(else ""))
".tar.gz"))
(sha256
(base32 (cond ((target-aarch64?)
"1dv2k9j3i3294bl94jhwi645pf5r2143hizxd3xpc3fz8w8cfyy8")
((target-arm32?)
"0f3mirqn3x2lrj7gzjyqklj081y7jfyxww2zkccg9f6jq0vcfcxd")
((target-x86-64?)
"0hs4b3nrr1qajrh7f64ibwjrfipqllvifp526kf2gfxnhpkr67l8")
(else ""))))))
(base32 (cond
((target-aarch64?)
"0vl66diz0a35zznlk3c9x2ik419xpc9q8mybm90dv5pw7vj46rgc")
((target-x86-64?)
"1r2alw2a3acs99dx89p886p3qbwpds6kpgz510jjiym8dna6hx3w")
(else ""))))))
(build-system binary-build-system)
(arguments
(list
#:install-plan ''(("hugo" "/bin/hugo"))))
(supported-systems (list "aarch64-linux"
"armhf-linux"
"x86_64-linux"))
#:install-plan ''(("hugo" "/bin/hugo"))
#:strip-binaries? #f
#:patchelf-plan
#~(list (list "hugo"
'("gcc:lib")))))
(inputs `(("gcc:lib" ,gcc "lib")))
(supported-systems (list "aarch64-linux" "x86_64-linux"))
(home-page "https://gohugo.io/")
(synopsis "Static site generator written in Go")
(description