nixos-config/docs/website/package.nix

35 lines
677 B
Nix
Raw Normal View History

{
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-09-03";
src = lib.cleanSource ./.;
2024-10-30 11:10:18 +00:00
vendorHash = "sha256-3HnyNLHyJDQ8hhZFb3Cu+i75nrUJn/iEV5xNP++di/4=";
buildInputs = [ asciidoctorWrapper gems ];
meta = with lib; {
description = "foodogsquared's NixOS configuration docs";
license = licenses.mit;
};
}