mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
880dcc6848
- Enable HTML minification - Support `output_dir` in `config.toml` - Allow sections to be drafted - Allow specifying default language in filenames - Render emoji in Markdown content if the `render_emoji` option is enabled - Enable YouTube privacy mode for the YouTube shortcode - Add language as class to the `<code>` block and as `data-lang` - Add bibtex to `load_data` - Add a `[markdown]` section to `config.toml` to configure rendering - Add `highlight_code` and `highlight_theme` to a `[markdown]` section in `config.toml` - Add `external_links_target_blank`, `external_links_no_follow` and `external_links_no_referrer` - Add a `smart_punctuation` option in the `[markdown]` section in `config.toml` to turn elements like dots and dashes into their typographic forms - Add iteration count variable `nth` for shortcodes to know how many times a shortcode has been invoked in a given content - Update some highlighting syntaxes and the TS syntax will now be used instead of JS due to issues with it - Remove `zola serve --watch-only`: since we build the HTML in memory and not on disk, it doesn't make sense anymore - Update clojure syntax - Prefer extra syntaxes to the default ones if we have a match for language - Fix `zola serve` having issues with non-ascii paths - 404 page now gets the site default language as `lang`
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, cmake, pkg-config, openssl, oniguruma, CoreServices }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "zola";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "getzola";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-yTvFQWmNxoB+CNZLHGmzJq7mKuOUxUqV4g8PWlOlRbM=";
|
|
};
|
|
|
|
cargoSha256 = "sha256:19vijhcs1i02jhz68acil7psv3pcn0jzi1i4y2l05i4m3ayxivjf";
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ openssl oniguruma ]
|
|
++ stdenv.lib.optional stdenv.isDarwin CoreServices;
|
|
|
|
RUSTONIG_SYSTEM_LIBONIG = true;
|
|
|
|
postInstall = ''
|
|
install -D -m 444 completions/zola.bash \
|
|
-t $out/share/bash-completion/completions
|
|
install -D -m 444 completions/_zola \
|
|
-t $out/share/zsh/site-functions
|
|
install -D -m 444 completions/zola.fish \
|
|
-t $out/share/fish/vendor_completions.d
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A fast static site generator with everything built-in";
|
|
homepage = "https://www.getzola.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dywedir _0x4A6F ];
|
|
};
|
|
}
|