mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-13 06:19:01 +00:00
29 lines
694 B
Nix
29 lines
694 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;
|
|
};
|
|
}
|