Something went wrong. Try again.
my over complex system configurations
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ stdenvNoCC, lib, nixdoc,
inputs, self ? inputs.self,
libset ? [ { name = "hardware"; description = "hardware"; } { name = "helpers"; description = "helpers"; } { name = "secrets"; description = "secrets"; } { name = "services"; description = "services"; } { name = "validators"; description = "validators"; } ],}:stdenvNoCC.mkDerivation { name = "lib-docs";
src = self + /modules/flake/lib;
nativeBuildInputs = [ nixdoc ];
installPhase = '' runHook preInstall
mkdir -p "$out"
function docgen { name=$1 description=$3 nixdoc -c "$name" -d "lib.$name: $description" -f "$name.nix" > "$out/$name.md" }
${lib.concatMapStrings ( { name, description, }: '' docgen ${name} ${lib.escapeShellArg description} '' ) libset}
runHook postInstall '';}