mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
home-manager: support a few extra pass-through options
These options will be passed through to the `nix-build` tool.
This commit is contained in:
parent
6bec9547c6
commit
8fe4e0879c
2 changed files with 77 additions and 1 deletions
|
@ -102,6 +102,22 @@
|
||||||
</group>
|
</group>
|
||||||
</arg>
|
</arg>
|
||||||
|
|
||||||
|
<arg>
|
||||||
|
--cores <replaceable>number</replaceable>
|
||||||
|
</arg>
|
||||||
|
|
||||||
|
<arg>
|
||||||
|
--max-jobs <replaceable>number</replaceable>
|
||||||
|
</arg>
|
||||||
|
|
||||||
|
<arg>
|
||||||
|
--keep-failed
|
||||||
|
</arg>
|
||||||
|
|
||||||
|
<arg>
|
||||||
|
--keep-going
|
||||||
|
</arg>
|
||||||
|
|
||||||
<arg>
|
<arg>
|
||||||
--show-trace
|
--show-trace
|
||||||
</arg>
|
</arg>
|
||||||
|
@ -354,6 +370,54 @@
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--cores <replaceable>number</replaceable></option>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Passed on to <citerefentry>
|
||||||
|
<refentrytitle>nix-build</refentrytitle>
|
||||||
|
<manvolnum>1</manvolnum> </citerefentry>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--max-jobs <replaceable>number</replaceable></option>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Passed on to <citerefentry>
|
||||||
|
<refentrytitle>nix-build</refentrytitle>
|
||||||
|
<manvolnum>1</manvolnum> </citerefentry>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--keep-failed</option>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Passed on to <citerefentry>
|
||||||
|
<refentrytitle>nix-build</refentrytitle>
|
||||||
|
<manvolnum>1</manvolnum> </citerefentry>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--keep-going</option>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Passed on to <citerefentry>
|
||||||
|
<refentrytitle>nix-build</refentrytitle>
|
||||||
|
<manvolnum>1</manvolnum> </citerefentry>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--show-trace</option>
|
<option>--show-trace</option>
|
||||||
|
|
|
@ -423,6 +423,14 @@ function doHelp() {
|
||||||
echo " -n Do a dry run, only prints what actions would be taken"
|
echo " -n Do a dry run, only prints what actions would be taken"
|
||||||
echo " -h Print this help"
|
echo " -h Print this help"
|
||||||
echo
|
echo
|
||||||
|
echo "Options passed on to nix-build(1)"
|
||||||
|
echo
|
||||||
|
echo " --cores NUM"
|
||||||
|
echo " --keep-failed"
|
||||||
|
echo " --keep-going"
|
||||||
|
echo " --max-jobs NUM"
|
||||||
|
echo " --show-trace"
|
||||||
|
echo
|
||||||
echo "Commands"
|
echo "Commands"
|
||||||
echo
|
echo
|
||||||
echo " help Print this help"
|
echo " help Print this help"
|
||||||
|
@ -490,7 +498,11 @@ while [[ $# -gt 0 ]]; do
|
||||||
-n|--dry-run)
|
-n|--dry-run)
|
||||||
export DRY_RUN=1
|
export DRY_RUN=1
|
||||||
;;
|
;;
|
||||||
--show-trace)
|
--max-jobs|--cores)
|
||||||
|
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--keep-failed|--keep-going|--show-trace)
|
||||||
PASSTHROUGH_OPTS+=("$opt")
|
PASSTHROUGH_OPTS+=("$opt")
|
||||||
;;
|
;;
|
||||||
-v|--verbose)
|
-v|--verbose)
|
||||||
|
|
Loading…
Reference in a new issue