-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
_nix-instantiate
23 lines (21 loc) · 924 Bytes
/
_nix-instantiate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#compdef nix-instantiate
#autoload
_nix-common-options
# --no-location: undocumented arg
# --repair: undocumented arg
_arguments \
- regular \
$__nix_boilerplate_opts \
$__nix_common_opts \
$__nix_common_store_opts \
$__nix_expr_opts \
'*'{--attr,-A}'[build a .drv from file (default: ./default.nix)]:package:_nix_complete_attr_paths' \
'--xml[Print output from --eval as XML]'\
'--json[Print output from --eval as JSON]'\
'--parse[Just parse the input files and print their abstract syntax trees]'\
'--eval[Just parse and evaluate the input files, and print the resulting values]'\
'--strict[Cause --eval to recursively evaluate list elements and attributes]'\
'--read-write-mode[Perform evaluation in read/write mode]'\
'*:File to instantiate (default\: ./default.nix):_nix_path' \
- find-file \
"--find-file[Look up the given files on Nix's search path]:*:Lookup file using <...> logic:"\