flake-info: Stop relying on user's NIX_PATH for flake extraction (#487)
This commit is contained in:
parent
2935082bba
commit
75e8457105
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue