2024-09-04 11:14:14 +00:00
|
|
|
{
|
|
|
|
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";
|
2024-11-21 05:52:17 +00:00
|
|
|
version = "2024-11-21";
|
2024-09-04 11:14:14 +00:00
|
|
|
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
|
2024-11-21 05:52:17 +00:00
|
|
|
vendorHash = "sha256-HWvwr2n6M84nAZFGESBRCtC0I6MuxnCRljRfhkpZlSo=";
|
2024-09-04 11:14:14 +00:00
|
|
|
|
2024-11-21 05:52:17 +00:00
|
|
|
nativeBuildInputs = [ asciidoctorWrapper ];
|
|
|
|
buildInputs = [ gems ];
|
2024-09-04 11:14:14 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "foodogsquared's NixOS configuration docs";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|