nixos-config/docs/website/package.nix
Gabriel Arazas e699ea2a2c
Some checks failed
Build devcontainers / build-devcontainers (push) Has been cancelled
Cache outputs / build-custom-packages (push) Has been cancelled
Check flake outputs / check-outputs (push) Has been cancelled
Publish every Git push to master to FlakeHub / flakehub-publish (push) Has been cancelled
Build personalized bootstrap ISO / build-iso (x86_64-linux) (push) Has been cancelled
Build project site / build (push) Has been cancelled
Update flake inputs / update (push) Has been cancelled
Build project site / deploy (push) Has been cancelled
Update Firefox addons / update-firefox-addons (push) Has been cancelled
docs/website: update Hugo modules and template
2024-11-21 13:52:17 +08:00

36 lines
704 B
Nix

{
lib,
buildHugoSite,
bundlerEnv,
ruby_3_1,
writeShellScriptBin,
}:
let
gems = bundlerEnv {
name = "foodogsquared-docs-gemset";
ruby = ruby_3_1;
gemdir = ./.;
};
asciidoctorWrapper = writeShellScriptBin "asciidoctor" ''
${lib.getExe' gems "asciidoctor"} -T ${./assets/templates/asciidoctor} $@
'';
in
buildHugoSite {
pname = "foodogsquared-docs";
version = "2024-11-21";
src = lib.cleanSource ./.;
vendorHash = "sha256-HWvwr2n6M84nAZFGESBRCtC0I6MuxnCRljRfhkpZlSo=";
nativeBuildInputs = [ asciidoctorWrapper ];
buildInputs = [ gems ];
meta = with lib; {
description = "foodogsquared's NixOS configuration docs";
license = licenses.mit;
};
}