mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-05-03 19:25:04 +00:00
rosenthal: Add hugo-bin.
* rosenthal/packages/binaries.scm (hugo-bin): New variable.
This commit is contained in:
parent
f24ac6493e
commit
b629fa832c
@ -106,3 +106,41 @@ different needs.")
|
||||
(license (license "Application Terms of Service"
|
||||
"https://www.cloudflare.com/application/terms/"
|
||||
"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…
Reference in New Issue
Block a user