forked from auxolotl/docs
move some packages
This commit is contained in:
parent
2f2cc3157d
commit
5a6ff19e7a
|
@ -1,10 +1,6 @@
|
||||||
{
|
{ pkgs, libsets }:
|
||||||
pkgs,
|
|
||||||
nixpkgs ? { },
|
|
||||||
libsets,
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
revision = pkgs.lib.trivial.revisionWithDefault (nixpkgs.rev or "master");
|
revision = pkgs.lib.trivial.revisionWithDefault (pkgs.rev or "master");
|
||||||
|
|
||||||
libDefPos =
|
libDefPos =
|
||||||
prefix: set:
|
prefix: set:
|
|
@ -1,7 +1,6 @@
|
||||||
# Generates the documentation for library functions via nixdoc.
|
# Generates the documentation for library functions via nixdoc.
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
spkgs,
|
|
||||||
libsets,
|
libsets,
|
||||||
inputs,
|
inputs,
|
||||||
}:
|
}:
|
||||||
|
@ -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 ${spkgs.doc-locations-json} -f "$baseName.nix" > "$out/$name.md"
|
nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.doc-locations-json} -f "$baseName.nix" > "$out/$name.md"
|
||||||
else
|
else
|
||||||
nixdoc -c "$name" -d "lib.$name: $description" -l ${spkgs.doc-locations-json} -f "$baseName/default.nix" > "$out/$name.md"
|
nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.doc-locations-json} -f "$baseName/default.nix" > "$out/$name.md"
|
||||||
fi
|
fi
|
||||||
echo "$out/$name.md" >> "$out/index.md"
|
echo "$out/$name.md" >> "$out/index.md"
|
||||||
}
|
}
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
|
@ -3,7 +3,7 @@ stdenvNoCC.mkDerivation {
|
||||||
pname = "aux-manual-assets";
|
pname = "aux-manual-assets";
|
||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
|
|
||||||
src = ../assets;
|
src = ./assets;
|
||||||
|
|
||||||
phases = "installPhase";
|
phases = "installPhase";
|
||||||
|
|
Loading…
Reference in a new issue