From f4840462f8380e09edb71466329fbd32a4e9ce5e Mon Sep 17 00:00:00 2001 From: kageru Date: Thu, 23 Apr 2020 23:50:00 +0200 Subject: [PATCH] diable !nix search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And there goes another one. They seem to have removed the giant public json file, and their current web search downloads a much smaller (although still irresponsibly large at 2.6 MiB) file with a very cryptic URL pattern and uses that instead. Since the new URL contains some random numbers (probably a timestamp + commit hash), I can’t reasonably use it to query packages. --- src/commands/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 6e0bd6a..36b794d 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -72,7 +72,8 @@ lazy_static! { let mut command_list = Vec::new(); command_list.push(Command::new("pacman", pacman::query_pacman)); command_list.push(Command::new("apt", apt::query_apt)); - command_list.push(Command::new("nix", nix::query_nix)); + // disabled because they seem to no longer have stable json urls + // command_list.push(Command::new("nix", nix::query_nix)); command_list.push(Command::new("dnf", dnf::query_dnf)); command_list.push(Command::new("aur", aur::query_aur)); command_list.push(Command::new("xbps", xbps::query_xbps));