mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
allow -j4 style flag for darwin-rebuild and the nix wrapper
This commit is contained in:
parent
ee2938e2e4
commit
57c0c8a112
2 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,9 @@ while [ "$#" -gt 0 ]; do
|
|||
--show-trace|--no-build-hook|--dry-run|--keep-going|-k|--keep-failed|-K|--verbose|-v|-vv|-vvv|-vvvv|-vvvvv|--fallback|-Q)
|
||||
extraBuildFlags+=("$i")
|
||||
;;
|
||||
-j[0-9]*)
|
||||
extraBuildFlags+=("$i")
|
||||
;;
|
||||
--max-jobs|-j|--cores|-I)
|
||||
if [ -z "$1" ]; then
|
||||
echo "$0: ‘$i’ requires an argument"
|
||||
|
|
|
@ -103,6 +103,9 @@ while [ "$#" -gt 0 ]; do
|
|||
j="$1"; shift 1
|
||||
extraNixFlags+=("$i" "$j")
|
||||
;;
|
||||
-j[0-9]*)
|
||||
extraNixFlags+=("$i")
|
||||
;;
|
||||
--add-root)
|
||||
# nix-instantiate
|
||||
if [ -z "$1" ]; then
|
||||
|
|
Loading…
Reference in a new issue