Nix tips and tricks

From wikinotes

search builtins docs

The builtin functions docs are hard to search.
Run to get a list, then search documentation here.


from docs

curl -L https://nixos.org/manual/nix/stable | grep 'class="function">builtins\.' | sed 's/^.*class="function">//g' | sed 's!</code>.*$!!'

from github

curl -L https://raw.githubusercontent.com/NixOS/nix/master/doc/manual/expressions/builtins.xml \
  | python -c "import sys;from xml.etree import ElementTree as ET; root=ET.fromstring(sys.stdin.read()); list(map(print, set(filter(lambda x: x.startswith('builtins.'), map(lambda x: x.text, root.findall('.//{http://docbook.org/ns/docbook}function'))))))"