Skip to content

Commit

Permalink
Merge pull request #328 from nix-community/ui-improvement
Browse files Browse the repository at this point in the history
nixos-generate: switch to new nix build command for better logs
  • Loading branch information
Lassulus authored Mar 28, 2024
2 parents 38beb36 + 7998cdd commit 63194fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos-generate
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ while [[ $# -gt 0 ]]; do
done

if ! $has_outlink; then
nix_build_args+=(--no-out-link)
nix_build_args+=(--no-link)
fi

if [[ -z $format_path ]]; then
Expand Down Expand Up @@ -174,7 +174,7 @@ fi
formatAttr=$(nix-instantiate "${nix_args[@]}" --eval --json -A config.formatAttr | jq -r .)
fileExtension=$(nix-instantiate "${nix_args[@]}" --eval --json -A config.fileExtension | jq -r .)

out=$(nix-build "${nix_args[@]}" "${nix_build_args[@]}" -A "config.system.build.$formatAttr")
out=$(nix build --extra-experimental-features nix-command -L --print-out-paths --file "${nix_args[@]}" "${nix_build_args[@]}" "config.system.build.$formatAttr")

if [[ -z $run ]]; then
# show the first file, ignoring nix-support
Expand Down

0 comments on commit 63194fc

Please sign in to comment.