rosenthal: Add hugo-bin.

* rosenthal/packages/binaries.scm (hugo-bin): New variable.
pull/1/head
Hilton Chain 1 year ago
parent f24ac6493e
commit b629fa832c
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
  1. 38
      rosenthal/packages/binaries.scm

@ -106,3 +106,41 @@ different needs.")
(license (license "Application Terms of Service" (license (license "Application Terms of Service"
"https://www.cloudflare.com/application/terms/" "https://www.cloudflare.com/application/terms/"
"nonfree")))) "nonfree"))))
(define-public hugo-bin
(package
(name "hugo-bin")
(version "0.115.3")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/gohugoio/hugo" "/releases/download/v"
version "/hugo_extended_" version "_linux-amd64.tar.gz"))
(sha256
(base32
"0i56yy77h1d4f36c2b9vlmdr2x6wzq9q3l7sck80wkz9awdjfzhv"))))
(build-system copy-build-system)
(arguments
(list #:install-plan #~'(("hugo" "bin/hugo"))
#:phases
#~(modify-phases %standard-phases
(delete 'strip)
(add-after 'install 'patch-elf
(lambda _
(let ((hugo (string-append #$output "/bin/hugo")))
(invoke "patchelf" "--set-interpreter"
(string-append #$(this-package-input "glibc")
#$(glibc-dynamic-linker))
hugo)
(invoke "patchelf" "--set-rpath"
(string-append #$gcc:lib "/lib")
hugo)))))))
(supported-systems '("x86_64-linux"))
(native-inputs (list patchelf))
(inputs (list glibc))
(home-page "https://gohugo.io/")
(synopsis "Static site generator")
(description
"Hugo is a static site generator written in Go, optimized for speed and
designed for flexibility.")
(license license:asl2.0)))

Loading…
Cancel
Save