mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Fix --offline
Add --substituters flag
This commit is contained in:
parent
bb17a88bc0
commit
3524643c3d
1 changed files with 10 additions and 0 deletions
|
@ -117,8 +117,18 @@ while [ $# -gt 0 ]; do
|
|||
shift 1
|
||||
;;
|
||||
--offline)
|
||||
extraMetadataFlags+=("$i")
|
||||
extraBuildFlags+=("$i")
|
||||
;;
|
||||
--substituters)
|
||||
if [ -z "$1" ]; then
|
||||
echo "$0: '$i' requires an argument"
|
||||
exit 1
|
||||
fi
|
||||
j=$1; shift 1
|
||||
extraMetadataFlags+=("$i" "$j")
|
||||
extraBuildFlags+=("$i" "$j")
|
||||
;;
|
||||
*)
|
||||
echo "$0: unknown option '$i'"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue