hugo: fix libstdc++

This commit is contained in:
Pavel Korytov 2023-07-29 22:44:13 +03:00
parent 9ed64d6bc6
commit 657c31d6b5

View file

@ -6,6 +6,10 @@
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (nonguix build-system binary)) #:use-module (nonguix build-system binary))
(define libstdc++
;; Libstdc++ matching the default GCC.
(make-libstdc++ gcc))
(define-public hugo-extended (define-public hugo-extended
(package (package
(name "hugo-extended") (name "hugo-extended")
@ -31,14 +35,15 @@
#:install-plan #:install-plan
`(("hugo" "/bin/")) `(("hugo" "/bin/"))
#:patchelf-plan #:patchelf-plan
`(("hugo" ("libgccjit"))) `(("hugo" ("libgccjit" "libstdc++")))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'unpack (replace 'unpack
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(invoke "tar" "-xvzf" (assoc-ref inputs "source"))))))) (invoke "tar" "-xvzf" (assoc-ref inputs "source")))))))
(native-inputs (native-inputs
`(("gzip" ,gzip))) `(("gzip" ,gzip)
("libstdc++" ,libstdc++)))
(synopsis "The worlds fastest framework for building websites.") (synopsis "The worlds fastest framework for building websites.")
(description "Hugo is a static HTML and CSS website generator (description "Hugo is a static HTML and CSS website generator
written in Go. It is optimized for speed, ease of use, and written in Go. It is optimized for speed, ease of use, and