flake-info: Stop relying on user's NIX_PATH for flake extraction (#487)

This commit is contained in:
Naïm Camille Favier 2022-06-06 12:42:40 +02:00 committed by GitHub
parent 2935082bba
commit 75e8457105
Failed to generate hash of commit

View file

@ -25,6 +25,7 @@ pub fn get_derivation_info<T: AsRef<str> + Display>(
let mut command = Command::with_args("nix", ARGS.iter());
command.add_arg_pair("-f", script_path.as_os_str());
command.add_arg_pair("-I", "nixpkgs=channel:nixpkgs-unstable");
command.add_args(["--override-flake", "input-flake", flake_ref.as_ref()].iter());
command.add_args(["--argstr", "flake", flake_ref.as_ref()].iter());
command.add_arg(kind.as_ref());