See NixOS/nixpkgs#528135 as well as this Discourse thread. The short version is that some packages (e.g. Neovim and NH) appear both as the regular package and as an -unwrapped version, and often only the -unwrapped version is built by Hydra. So nix-index doesn't see them, which causes issues for, e.g., people using comma with nix-index-database.
Does it make sense to change nix-index in some way to account for this? For instance, would it be possible to also index meta.mainProgram, which https://search.nixos.org already uses to list the "Programs provided" for a package?
It looks like to get meta.mainProgram we'd need to add the --meta flag to nix-env --query, which brings that XML output from ~30 MB to ~300 MB. Not sure if that's a problem? I guess we could gate it behind a --main-program or --no-main-program flag on nix-index itself?
See NixOS/nixpkgs#528135 as well as this Discourse thread. The short version is that some packages (e.g. Neovim and NH) appear both as the regular package and as an
-unwrappedversion, and often only the-unwrappedversion is built by Hydra. So nix-index doesn't see them, which causes issues for, e.g., people using comma with nix-index-database.Does it make sense to change nix-index in some way to account for this? For instance, would it be possible to also index
meta.mainProgram, which https://search.nixos.org already uses to list the "Programs provided" for a package?It looks like to get
meta.mainProgramwe'd need to add the--metaflag tonix-env --query, which brings that XML output from ~30 MB to ~300 MB. Not sure if that's a problem? I guess we could gate it behind a--main-programor--no-main-programflag on nix-index itself?