summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain GARBAGE <romain.garbage@inria.fr>2024-12-31 10:13:14 +0100
committerJohn Kehayias <john.kehayias@protonmail.com>2025-01-26 14:31:15 -0500
commitf80b23827536b9b6c549a8d6882244757720de09 (patch)
tree17942b42b2e5d7c8bdbd3f1cbdcba64b793e9702
parentfaf4c7dcf3f772b369bbf4b964aa4f5e0631dd69 (diff)
nongnu: Add hugo.
* nongnu/packages/hugo: New module. (hugo): New variable. Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
-rw-r--r--nongnu/packages/hugo.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/nongnu/packages/hugo.scm b/nongnu/packages/hugo.scm
new file mode 100644
index 00000000..d4cab2a0
--- /dev/null
+++ b/nongnu/packages/hugo.scm
@@ -0,0 +1,47 @@
+;;; SPDX-License-Identifier: GPL-3.0-or-later
+;;; Copyright © 2024 Romain Garbage <romain.garbage@inria.fr>
+
+(define-module (nongnu packages hugo)
+ #:use-module (nonguix build-system binary)
+ #:use-module (guix download)
+ #:use-module ((guix licenses)
+ #:prefix license:)
+ #:use-module (guix packages)
+ #:use-module (guix utils))
+
+(define-public hugo
+ (package
+ (name "hugo")
+ (version "0.140.2")
+ (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")) ".tar.gz"))
+ (sha256
+ (base32 (cond ((target-aarch64?)
+ "1dv2k9j3i3294bl94jhwi645pf5r2143hizxd3xpc3fz8w8cfyy8")
+ ((target-arm32?)
+ "0f3mirqn3x2lrj7gzjyqklj081y7jfyxww2zkccg9f6jq0vcfcxd")
+ ((target-x86-64?)
+ "0hs4b3nrr1qajrh7f64ibwjrfipqllvifp526kf2gfxnhpkr67l8"))))))
+ (build-system binary-build-system)
+ (arguments
+ (list
+ #:install-plan ''(("hugo" "/bin/hugo"))))
+ (supported-systems (list "aarch64-linux"
+ "armhf-linux"
+ "x86_64-linux"))
+ (home-page "https://gohugo.io/")
+ (synopsis "Static site generator written in Go")
+ (description
+ "Hugo is a static site generator written in Go, optimized for speed and
+designed for flexibility. With its advanced templating system and fast asset
+pipelines, Hugo renders a complete site in seconds, often less.")
+ (license license:asl2.0)))