check for nixpkgs= instead of nixpkgs in use_channel

nixpkgs may be path element in a non nixpkgs entry
This commit is contained in:
Artturin 2023-04-06 00:47:31 +03:00
parent 87f7d49716
commit e27a636990

View File

@ -114,7 +114,7 @@ fn main() -> ExitCode {
Ok(val) => val,
Err(_) => "".to_owned(),
}
.contains("nixpkgs");
.contains("nixpkgs=");
if args.print_package {
println!(