pass --option to nix-build

This commit is contained in:
Jörg Thalheim 2021-02-10 08:57:20 +01:00
parent fd7fe03149
commit 93c3100f95
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4

View File

@ -41,6 +41,7 @@ Options:
* --system: specify the target system (eg: x86_64-linux)
* -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 to nix-build (see nix-build documentation).
* -I KEY=VALUE: Add a key to the Nix expression search path.
USAGE
}
@ -78,6 +79,10 @@ while [[ $# -gt 0 ]]; do
cores=$2
shift
;;
--option)
nix_build_args+=("$1" "$2" "$3")
shift 2
;;
-f | --format)
format_path=$format_dir/$2.nix
shift