#compdef nix-build #autoload local command_name=nix-build _nix-common-options local -a _nix_build_opts _nix_build_opts=( '--drv-link[Add a symlink to the store derivation]:Symlink Name:( )' \ '--add-drv-link[Shorthand for --drv-link ./derivation]' \ '--no-out-link[Do not create a symlink to the output path]' \ {--out-link,-o}'[Name of the output symlink]:Output Symlink Name:( )' \ ) # TODO: Undocumented args to possibly add # --add-root # --dry-run # --check # --quiet # --command # --exclude # --pure # --impure # --packages,-p _arguments \ $_nix_boilerplate_opts \ $_nix_common_opts \ $_nix_build_opts \ '*:Paths:_files'