mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
docs/website: create package definition
This makes deployment through CI way easier.
This commit is contained in:
parent
c2da083e5f
commit
9aff86a3e8
34
docs/website/package.nix
Normal file
34
docs/website/package.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
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 ./.;
|
||||
|
||||
vendorHash = "";
|
||||
|
||||
buildInputs = [ asciidoctorWrapper gems ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "foodogsquared's NixOS configuration docs";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user