mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
14 lines
327 B
Nix
14 lines
327 B
Nix
with builtins;
|
|
with import ./utils.nix;
|
|
|
|
builtins:
|
|
|
|
concatStrings (map
|
|
(name:
|
|
let builtin = builtins.${name}; in
|
|
" - `builtins.${name}` " + concatStringsSep " " (map (s: "*${s}*") builtin.args)
|
|
+ " \n\n"
|
|
+ concatStrings (map (s: " ${s}\n") (splitLines builtin.doc)) + "\n\n"
|
|
)
|
|
(attrNames builtins))
|
|
|