1
0
Fork 0
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:
Rubikoid 2024-04-06 19:30:01 +03:00
parent bb17a88bc0
commit 3524643c3d
No known key found for this signature in database
GPG key ID: 0B65FBE6C49C4BE5

View file

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