feat: add --special-arg option

This commit is contained in:
mrtnvgr 2024-02-29 23:07:31 +07:00 committed by mergify[bot]
parent f34ad8b544
commit 2c9562e762

View File

@ -42,6 +42,7 @@ Options:
* -o, --out-link: specify the outlink location for nix-build
* --cores : to control the maximum amount of parallelism. (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.
USAGE
}
@ -83,6 +84,10 @@ while [[ $# -gt 0 ]]; do
nix_build_args+=("--argstr" "diskSize" "$2")
shift
;;
--special-arg)
nix_build_args+=("--argstr" "$2" "$3")
shift 2
;;
--option)
nix_build_args+=("$1" "$2" "$3")
shift 2