1 # Generates the documentation for library functons via nixdoc. To add
2 # another library function file to this list, the include list in the
3 # file `doc/functions/library.xml` must also be updated.
5 { pkgs ? import ./.. {}, locationsXml }:
7 with pkgs; stdenv.mkDerivation {
8 name = "nixpkgs-lib-docs";
11 buildInputs = [ nixdoc ];
14 nixdoc -c "$1" -d "$2" -f "../lib/$1.nix" > "$out/$1.xml"
18 ln -s ${locationsXml} $out/locations.xml
20 docgen strings 'String manipulation functions'
21 docgen trivial 'Miscellaneous functions'
22 docgen lists 'List manipulation functions'
23 docgen debug 'Debugging functions'
24 docgen options 'NixOS / nixpkgs option handling'