From 011f702a5fc0a7836e829310a76398c7dcc572f0 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Thu, 27 Mar 2025 08:28:39 +0100 Subject: [PATCH] nongnu: hugo: Update to extended version --- nongnu/packages/hugo.scm | 53 ++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/nongnu/packages/hugo.scm b/nongnu/packages/hugo.scm index 1b11a5bb..f1c6e36e 100644 --- a/nongnu/packages/hugo.scm +++ b/nongnu/packages/hugo.scm @@ -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