Skip to content

Commit

Permalink
Merge pull request nix-community#88 from nix-community/nix-options
Browse files Browse the repository at this point in the history
pass --option to nix-build
  • Loading branch information
Lassulus authored Feb 14, 2021
2 parents ba8ba2c + 88f02ce commit 537b572
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nixos-generate
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 537b572

Please sign in to comment.