mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-10-26 11:39:05 +03:00
feat: add --special-arg
option
This commit is contained in:
parent
f34ad8b544
commit
2c9562e762
@ -42,6 +42,7 @@ Options:
|
|||||||
* -o, --out-link: specify the outlink location for nix-build
|
* -o, --out-link: specify the outlink location for nix-build
|
||||||
* --cores : to control the maximum amount of parallelism. (see nix-build documentation)
|
* --cores : to control the maximum amount of parallelism. (see nix-build documentation)
|
||||||
* --option : Passed to nix-build (see nix-build documentation).
|
* --option : Passed to nix-build (see nix-build documentation).
|
||||||
|
* --special-arg : Passed to the `specialArgs` variable
|
||||||
* -I KEY=VALUE: Add a key to the Nix expression search path.
|
* -I KEY=VALUE: Add a key to the Nix expression search path.
|
||||||
USAGE
|
USAGE
|
||||||
}
|
}
|
||||||
@ -83,6 +84,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
nix_build_args+=("--argstr" "diskSize" "$2")
|
nix_build_args+=("--argstr" "diskSize" "$2")
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--special-arg)
|
||||||
|
nix_build_args+=("--argstr" "$2" "$3")
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
--option)
|
--option)
|
||||||
nix_build_args+=("$1" "$2" "$3")
|
nix_build_args+=("$1" "$2" "$3")
|
||||||
shift 2
|
shift 2
|
||||||
|
Loading…
Reference in New Issue
Block a user