summaryrefslogtreecommitdiff
path: root/nongnu/packages/hugo.scm
blob: d4cab2a0fe039c56e85df9eb7537f90c679321f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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)))