diff options
| author | Romain GARBAGE <romain.garbage@inria.fr> | 2024-12-31 10:13:14 +0100 |
|---|---|---|
| committer | John Kehayias <john.kehayias@protonmail.com> | 2025-01-26 14:31:15 -0500 |
| commit | f80b23827536b9b6c549a8d6882244757720de09 (patch) | |
| tree | 17942b42b2e5d7c8bdbd3f1cbdcba64b793e9702 | |
| parent | faf4c7dcf3f772b369bbf4b964aa4f5e0631dd69 (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.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nongnu/packages/hugo.scm b/nongnu/packages/hugo.scm new file mode 100644 index 0000000..d4cab2a --- /dev/null +++ b/nongnu/packages/hugo.scm | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | ;;; SPDX-License-Identifier: GPL-3.0-or-later | ||
| 2 | ;;; Copyright © 2024 Romain Garbage <romain.garbage@inria.fr> | ||
| 3 | |||
| 4 | (define-module (nongnu packages hugo) | ||
| 5 | #:use-module (nonguix build-system binary) | ||
| 6 | #:use-module (guix download) | ||
| 7 | #:use-module ((guix licenses) | ||
| 8 | #:prefix license:) | ||
| 9 | #:use-module (guix packages) | ||
| 10 | #:use-module (guix utils)) | ||
| 11 | |||
| 12 | (define-public hugo | ||
| 13 | (package | ||
| 14 | (name "hugo") | ||
| 15 | (version "0.140.2") | ||
| 16 | (source | ||
| 17 | (origin | ||
| 18 | (method url-fetch) | ||
| 19 | (uri (string-append | ||
| 20 | "https://github.com/gohugoio/hugo/releases/download/v" version | ||
| 21 | "/" name "_" version "_linux-" (cond ((target-aarch64?) | ||
| 22 | "arm64") | ||
| 23 | ((target-arm32?) | ||
| 24 | "arm") | ||
| 25 | ((target-x86-64?) | ||
| 26 | "amd64")) ".tar.gz")) | ||
| 27 | (sha256 | ||
| 28 | (base32 (cond ((target-aarch64?) | ||
| 29 | "1dv2k9j3i3294bl94jhwi645pf5r2143hizxd3xpc3fz8w8cfyy8") | ||
| 30 | ((target-arm32?) | ||
| 31 | "0f3mirqn3x2lrj7gzjyqklj081y7jfyxww2zkccg9f6jq0vcfcxd") | ||
| 32 | ((target-x86-64?) | ||
| 33 | "0hs4b3nrr1qajrh7f64ibwjrfipqllvifp526kf2gfxnhpkr67l8")))))) | ||
| 34 | (build-system binary-build-system) | ||
| 35 | (arguments | ||
| 36 | (list | ||
| 37 | #:install-plan ''(("hugo" "/bin/hugo")))) | ||
| 38 | (supported-systems (list "aarch64-linux" | ||
| 39 | "armhf-linux" | ||
| 40 | "x86_64-linux")) | ||
| 41 | (home-page "https://gohugo.io/") | ||
| 42 | (synopsis "Static site generator written in Go") | ||
| 43 | (description | ||
| 44 | "Hugo is a static site generator written in Go, optimized for speed and | ||
| 45 | designed for flexibility. With its advanced templating system and fast asset | ||
| 46 | pipelines, Hugo renders a complete site in seconds, often less.") | ||
| 47 | (license license:asl2.0))) | ||
