1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00

home-manager: support --option argument

Fixes #784
This commit is contained in:
Robert Helgesson 2019-08-30 00:52:09 +02:00
parent b6289f7022
commit 8ab1d22a82
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 21 additions and 0 deletions

View file

@ -102,6 +102,10 @@
</group> </group>
</arg> </arg>
<arg>
--option <replaceable>name</replaceable> <replaceable>value</replaceable>
</arg>
<arg> <arg>
--cores <replaceable>number</replaceable> --cores <replaceable>number</replaceable>
</arg> </arg>
@ -370,6 +374,18 @@
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term>
<option>--option <replaceable>name</replaceable> <replaceable>value</replaceable></option>
</term>
<listitem>
<para>
Passed on to <citerefentry>
<refentrytitle>nix-build</refentrytitle>
<manvolnum>1</manvolnum> </citerefentry>.
</para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term> <term>
<option>--cores <replaceable>number</replaceable></option> <option>--cores <replaceable>number</replaceable></option>

View file

@ -429,6 +429,7 @@ function doHelp() {
echo " --keep-failed" echo " --keep-failed"
echo " --keep-going" echo " --keep-going"
echo " --max-jobs NUM" echo " --max-jobs NUM"
echo " --option NAME VALUE"
echo " --show-trace" echo " --show-trace"
echo echo
echo "Commands" echo "Commands"
@ -498,6 +499,10 @@ while [[ $# -gt 0 ]]; do
-n|--dry-run) -n|--dry-run)
export DRY_RUN=1 export DRY_RUN=1
;; ;;
--option)
PASSTHROUGH_OPTS+=("$opt" "$1" "$2")
shift 2
;;
--max-jobs|--cores) --max-jobs|--cores)
PASSTHROUGH_OPTS+=("$opt" "$1") PASSTHROUGH_OPTS+=("$opt" "$1")
shift shift