forked from auxolotl/docs
lib-docs -> nixpkgs-lib-docs
This commit is contained in:
parent
d1a078560a
commit
160ac2f709
|
@ -6,9 +6,8 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
|
||||
inherit (pkgs) stdenv nixdoc;
|
||||
|
||||
locations-json = pkgs.callPackage ./locations-json.nix { inherit lib; };
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "nixpkgs-lib-docs";
|
||||
|
@ -22,9 +21,9 @@ stdenv.mkDerivation {
|
|||
description=$3
|
||||
# TODO: wrap lib.$name in <literal>, make nixdoc not escape it
|
||||
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
|
||||
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
|
||||
}
|
||||
|
|
@ -81,7 +81,7 @@ stdenvNoCC.mkDerivation {
|
|||
mv hooks out/hooks
|
||||
mv languages-frameworks out/languages-and-frameworks
|
||||
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 packages out/packages
|
||||
mv stdenv out/stdenv
|
||||
|
|
Loading…
Reference in a new issue