From dffb62de9551be7fde060114d30043dff069c8c6 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Sun, 30 Jun 2024 17:57:03 -0400 Subject: [PATCH] lib-doc -> lib-docs --- packages/{lib-doc => lib-docs}/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) rename packages/{lib-doc => lib-docs}/default.nix (77%) diff --git a/packages/lib-doc/default.nix b/packages/lib-docs/default.nix similarity index 77% rename from packages/lib-doc/default.nix rename to packages/lib-docs/default.nix index 1c27e9b..b5f04ca 100644 --- a/packages/lib-doc/default.nix +++ b/packages/lib-docs/default.nix @@ -1,8 +1,13 @@ # Generates the documentation for library functions via nixdoc. -{ pkgs, inputs, ... }: +{ + pkgs, + inputs, + lib, + ... +}: let - inherit (pkgs) stdenv lib nixdoc; + inherit (pkgs) stdenv nixdoc; in stdenv.mkDerivation { @@ -17,9 +22,9 @@ stdenv.mkDerivation { description=$3 # TODO: wrap lib.$name in , make nixdoc not escape it if [[ -e "../lib/$baseName.nix" ]]; then - nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.doc-locations-json} -f "$baseName.nix" > "$out/$name.md" + nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.amg.doc-locations-json} -f "$baseName.nix" > "$out/$name.md" else - nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.doc-locations-json} -f "$baseName/default.nix" > "$out/$name.md" + nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.amg.doc-locations-json} -f "$baseName/default.nix" > "$out/$name.md" fi } @@ -34,6 +39,6 @@ stdenv.mkDerivation { '' docgen ${name} ${baseName} ${lib.escapeShellArg description} '' - ) pkgs.libsets} + ) lib.amg.libsets} ''; }