1
0
Fork 0
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:
Daiderd Jordan 2017-01-24 21:47:34 +01:00
parent ee2938e2e4
commit 57c0c8a112
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 6 additions and 0 deletions

View file

@ -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"

View file

@ -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