Skip to content

nix-index can't see wrapper packages #317

Description

@samestep

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions