lib-docs -> nixpkgs-lib-docs

This commit is contained in:
Pyrox 2024-07-01 16:44:01 -04:00
parent d1a078560a
commit 160ac2f709
Signed by untrusted user: pyrox
GPG key ID: 8CDF3F7CAA53A0F5
3 changed files with 4 additions and 5 deletions

View file

@ -6,9 +6,8 @@
... ...
}: }:
let let
inherit (pkgs) stdenv nixdoc; inherit (pkgs) stdenv nixdoc;
locations-json = pkgs.callPackage ./locations-json.nix { inherit lib; };
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "nixpkgs-lib-docs"; name = "nixpkgs-lib-docs";
@ -22,9 +21,9 @@ stdenv.mkDerivation {
description=$3 description=$3
# TODO: wrap lib.$name in <literal>, make nixdoc not escape it # TODO: wrap lib.$name in <literal>, make nixdoc not escape it
if [[ -e "../lib/$baseName.nix" ]]; then if [[ -e "../lib/$baseName.nix" ]]; then
nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.amg.doc-locations-json} -f "$baseName.nix" > "$out/$name.md" nixdoc -c "$name" -d "lib.$name: $description" -l ${locations-json} -f "$baseName.nix" > "$out/$name.md"
else else
nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.amg.doc-locations-json} -f "$baseName/default.nix" > "$out/$name.md" nixdoc -c "$name" -d "lib.$name: $description" -l ${locations-json} -f "$baseName/default.nix" > "$out/$name.md"
fi fi
} }

View file

@ -81,7 +81,7 @@ stdenvNoCC.mkDerivation {
mv hooks out/hooks mv hooks out/hooks
mv languages-frameworks out/languages-and-frameworks mv languages-frameworks out/languages-and-frameworks
mkdir out/library-reference mkdir out/library-reference
cp ${pkgs.amg.lib-docs}/*.md out/library-reference/ cp ${pkgs.amg.nixpkgs-lib-docs}/*.md out/library-reference/
mv module-system out/module-system mv module-system out/module-system
mv packages out/packages mv packages out/packages
mv stdenv out/stdenv mv stdenv out/stdenv