From 85f5d9a6ed5b5734c884798f6c9558f9df5e39e0 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Thu, 18 Mar 2021 17:26:51 -0700 Subject: [PATCH] nixos-rebuild: nix flake info -> nix flake metadata As of https://github.com/NixOS/nix/commit/66fa1c7375e4b3073a16df4678cf1d37446ed20b, the `nix flake info` and `nix flake list-inputs` commands were merged into `nix flake metadata`. --- pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh b/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh index 47179afe515f6..5874f334fedb9 100644 --- a/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh +++ b/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh @@ -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.