flake-info: drop channels for flake commands (#782)

This commit is contained in:
Weijia Wang 2024-06-05 21:49:59 +02:00 committed by GitHub
parent 24d786c04f
commit 3f75136ddc
Failed to generate hash of commit

View file

@ -22,7 +22,7 @@ pub fn get_derivation_info<T: AsRef<str> + Display>(
) -> Result<Vec<FlakeEntry>> {
let mut command = Command::with_args("nix", ARGS.iter());
command.add_arg_pair("-f", super::EXTRACT_SCRIPT.clone());
command.add_arg_pair("-I", "nixpkgs=channel:nixpkgs-unstable");
command.add_arg_pair("-I", "nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz");
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());