From a9bba35ea25af61266322bc8ef4560b83078c8d3 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Tue, 2 Jul 2024 03:03:01 -0400 Subject: [PATCH] nixpkgs-manual updates --- packages/nixpkgs-manual/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nixpkgs-manual/default.nix b/packages/nixpkgs-manual/default.nix index 519e40e..ea9ce35 100644 --- a/packages/nixpkgs-manual/default.nix +++ b/packages/nixpkgs-manual/default.nix @@ -37,6 +37,7 @@ let ) opt.declarations; }; }; + optionsJSONFile = "${optionsDoc.optionsJSON}/share/doc/nixos/options.json"; in stdenvNoCC.mkDerivation { name = "nixpkgs-manual-md"; @@ -62,7 +63,7 @@ stdenvNoCC.mkDerivation { nixos-render-docs -j $NIX_BUILD_CORES options commonmark \ --manpage-urls ./manpage-urls.json \ --revision ${inputs.nixpkgs.rev} \ - ${optionsDoc.optionsJSON}/share/doc/nixos/options.json ./options.md + ${optionsJSONFile} ./options.md substituteInPlace ./languages-frameworks/python.section.md --subst-var-by python-interpreter-table "$(<"$pythonInterpreterTablePath")" mv ./functions/library.md.in ./functions/library.md @@ -88,6 +89,7 @@ stdenvNoCC.mkDerivation { mv stdenv.md out/stdenv/index.md mv using out/using-nixpkgs mv using-nixpkgs.md out/using-nixpkgs/index.md + cp ${optionsJSONFile} out/options.json pushd out find . -type f -exec perl -pi -e 's/\s*:::{.note}\n/!!! note\n\ \ /' {} \; find . -type f -exec perl -pi -e 's/\s*:::{.warning}\n/!!! warning\n\ \ /' {} \;