mirror of
https://github.com/nix-community/home-manager
synced 2024-12-20 16:59:47 +01:00
home-manager: add command line argument --impure
This commit is contained in:
parent
49a03303e1
commit
1a6df903e3
5 changed files with 25 additions and 5 deletions
|
@ -139,6 +139,10 @@
|
||||||
--debug
|
--debug
|
||||||
</arg>
|
</arg>
|
||||||
|
|
||||||
|
<arg>
|
||||||
|
--impure
|
||||||
|
</arg>
|
||||||
|
|
||||||
<arg>
|
<arg>
|
||||||
--keep-failed
|
--keep-failed
|
||||||
</arg>
|
</arg>
|
||||||
|
@ -492,6 +496,18 @@
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--impure</option>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Passed on to <citerefentry>
|
||||||
|
<refentrytitle>nix-build</refentrytitle>
|
||||||
|
<manvolnum>1</manvolnum> </citerefentry>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--keep-failed</option>
|
<option>--keep-failed</option>
|
||||||
|
|
|
@ -290,10 +290,10 @@ _home-manager_completions ()
|
||||||
#--------------------------#
|
#--------------------------#
|
||||||
|
|
||||||
local Options
|
local Options
|
||||||
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" "--verbose" \
|
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" \
|
||||||
"--cores" "--debug" "--keep-failed" "--keep-going" "-j" "--max-jobs" \
|
"--verbose" "--cores" "--debug" "--impure" "--keep-failed" \
|
||||||
"--no-substitute" "--no-out-link" "--show-trace" "--substitute" \
|
"--keep-going" "-j" "--max-jobs" "--no-substitute" "--no-out-link" \
|
||||||
"--builders")
|
"--show-trace" "--substitute" "--builders")
|
||||||
|
|
||||||
# ^ « home-manager »'s options.
|
# ^ « home-manager »'s options.
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ complete -c home-manager -x -l "arg" -d "Override inputs passed to home-manager.
|
||||||
complete -c home-manager -x -l "argstr" -d "Like --arg but the value is a string"
|
complete -c home-manager -x -l "argstr" -d "Like --arg but the value is a string"
|
||||||
complete -c home-manager -x -l "cores" -d "Threads per job (e.g. -j argument to make)"
|
complete -c home-manager -x -l "cores" -d "Threads per job (e.g. -j argument to make)"
|
||||||
complete -c home-manager -x -l "debug"
|
complete -c home-manager -x -l "debug"
|
||||||
|
complete -c home-manager -x -l "impure"
|
||||||
complete -c home-manager -f -l "keep-failed" -d "Keep temporary directory used by failed builds"
|
complete -c home-manager -f -l "keep-failed" -d "Keep temporary directory used by failed builds"
|
||||||
complete -c home-manager -f -l "keep-going" -d "Keep going in case of failed builds"
|
complete -c home-manager -f -l "keep-going" -d "Keep going in case of failed builds"
|
||||||
complete -c home-manager -x -s j -l "max-jobs" -d "Max number of build jobs in parallel"
|
complete -c home-manager -x -s j -l "max-jobs" -d "Max number of build jobs in parallel"
|
||||||
|
|
|
@ -8,6 +8,7 @@ _arguments \
|
||||||
'-b[backup files]:EXT:()' \
|
'-b[backup files]:EXT:()' \
|
||||||
'--cores[cores]:NUM:()' \
|
'--cores[cores]:NUM:()' \
|
||||||
'--debug[debug]' \
|
'--debug[debug]' \
|
||||||
|
'--impure[impure]' \
|
||||||
'--keep-failed[keep failed]' \
|
'--keep-failed[keep failed]' \
|
||||||
'--keep-going[keep going]' \
|
'--keep-going[keep going]' \
|
||||||
'(-h --help)'{--help,-h}'[help]' \
|
'(-h --help)'{--help,-h}'[help]' \
|
||||||
|
@ -46,6 +47,7 @@ case "$state" in
|
||||||
_arguments \
|
_arguments \
|
||||||
'--cores[cores]:NUM:()' \
|
'--cores[cores]:NUM:()' \
|
||||||
'--debug[debug]' \
|
'--debug[debug]' \
|
||||||
|
'--impure[impure]' \
|
||||||
'--keep-failed[keep failed]' \
|
'--keep-failed[keep failed]' \
|
||||||
'--keep-going[keep going]' \
|
'--keep-going[keep going]' \
|
||||||
'--max-jobs[max jobs]:NUM:()' \
|
'--max-jobs[max jobs]:NUM:()' \
|
||||||
|
|
|
@ -516,6 +516,7 @@ function doHelp() {
|
||||||
echo " --arg(str) NAME VALUE Override inputs passed to home-manager.nix"
|
echo " --arg(str) NAME VALUE Override inputs passed to home-manager.nix"
|
||||||
echo " --cores NUM"
|
echo " --cores NUM"
|
||||||
echo " --debug"
|
echo " --debug"
|
||||||
|
echo " --impure"
|
||||||
echo " --keep-failed"
|
echo " --keep-failed"
|
||||||
echo " --keep-going"
|
echo " --keep-going"
|
||||||
echo " -j, --max-jobs NUM"
|
echo " -j, --max-jobs NUM"
|
||||||
|
@ -624,7 +625,7 @@ while [[ $# -gt 0 ]]; do
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--debug|--keep-failed|--keep-going|--show-trace\
|
--debug|--keep-failed|--keep-going|--show-trace\
|
||||||
|--substitute|--no-substitute)
|
|--substitute|--no-substitute|--impure)
|
||||||
PASSTHROUGH_OPTS+=("$opt")
|
PASSTHROUGH_OPTS+=("$opt")
|
||||||
;;
|
;;
|
||||||
-v|--verbose)
|
-v|--verbose)
|
||||||
|
|
Loading…
Reference in a new issue