Skip to content

Commit

Permalink
nixos-rebuild: nix flake info -> nix flake metadata
Browse files Browse the repository at this point in the history
As of
NixOS/nix@66fa1c7,
the `nix flake info` and `nix flake list-inputs` commands were merged into
`nix flake metadata`.
  • Loading branch information
cole-h committed Mar 19, 2021
1 parent 370a401 commit 85f5d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ fi

# Resolve the flake.
if [[ -n $flake ]]; then
flake=$(nix "${flakeFlags[@]}" flake info --json "${extraBuildFlags[@]}" "${lockFlags[@]}" -- "$flake" | jq -r .url)
flake=$(nix "${flakeFlags[@]}" flake metadata --json "${extraBuildFlags[@]}" "${lockFlags[@]}" -- "$flake" | jq -r .url)
fi

# Find configuration.nix and open editor instead of building.
Expand Down

0 comments on commit 85f5d9a

Please sign in to comment.