mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: Add zola.
* gnu/packages/rust-apps.scm (zola): New variable. * gnu/packages/rust-crates.scm (zola): Map cargo inputs. Change-Id: I9b7fb89af687f4a58c8ff77effc5695773363165 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
committed by
Efraim Flashner
parent
a2590694ae
commit
023fc88c32
@@ -42,6 +42,7 @@
|
||||
;;; Copyright © 2025 Timo Wilken <guix@twilken.net>
|
||||
;;; Copyright © 2025 Igorj Gorjaĉev <igor@goryachev.org>
|
||||
;;; Copyright © 2025 Raven Hallsby <karl@hallsby.com>
|
||||
;;; Copyright © 2025 Samuel Sehnert <mail@buffersquid.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
@@ -4039,6 +4040,61 @@ and users are in full control of their data and workflow.")
|
||||
"This package provides a high performance CSV command line toolkit.")
|
||||
(license (list license:unlicense license:expat))))
|
||||
|
||||
(define-public zola
|
||||
(package
|
||||
(name "zola")
|
||||
(version "0.21.0")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(file-name (git-file-name name version))
|
||||
(uri (git-reference
|
||||
(url "https://github.com/getzola/zola")
|
||||
(commit (string-append "v" version))))
|
||||
(sha256
|
||||
(base32 "1j7mdw7y3j2fzwickfl9w4yx0xjbkaf03vcndf2b6jc3la20rzgv"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:install-source? #f
|
||||
#:modules
|
||||
'((guix build cargo-build-system)
|
||||
(guix build utils)
|
||||
(ice-9 match))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'install 'install-completions
|
||||
(lambda* (#:key native-inputs #:allow-other-keys)
|
||||
(for-each
|
||||
(match-lambda
|
||||
((shell . path)
|
||||
(mkdir-p (in-vicinity #$output (dirname path)))
|
||||
(let ((binary
|
||||
(if #$(%current-target-system)
|
||||
(search-input-file native-inputs "bin/zola")
|
||||
(in-vicinity #$output "bin/zola"))))
|
||||
(with-output-to-file (in-vicinity #$output path)
|
||||
(lambda _
|
||||
(invoke binary "completion" shell))))))
|
||||
'(("bash" . "share/bash-completion/completions/zola")
|
||||
("elvish" . "share/elvish/lib/zola")
|
||||
("fish" . "share/fish/vendor_completions.d/zola.fish")
|
||||
("zsh" . "share/zsh/site-functions/_zola"))))))))
|
||||
(native-inputs
|
||||
(append
|
||||
(if (%current-target-system)
|
||||
(list this-package)
|
||||
'())
|
||||
(list pkg-config)))
|
||||
(inputs (cons* libwebp oniguruma
|
||||
(cargo-inputs 'zola)))
|
||||
(synopsis "Static site generator")
|
||||
(description
|
||||
"Zola generates static websites from Markdown content and Tera templates.
|
||||
It supports taxonomies, shortcodes, and live reloading.")
|
||||
(home-page "https://www.getzola.org/")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public zoxide
|
||||
(package
|
||||
(name "zoxide")
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user