Skip to content

Replace `command-not-found' with nix-index #39789

@matthewbauer

Description

@matthewbauer

@bennofs has created a useful project called nix-index which provides an index of files built by Hydra

https://github.com/bennofs/nix-index

In many ways it is similar to command-not-found.pl. Some advantages of nix-index, though:

  • works outside of NixOS
  • has indexes for ALL files, not just those in /bin/
  • written in Rust instead of Perl

I'm wondering whether people think this would be worthwhile to do? Instead of shipping channels with programs.sqlite we could include the generated nix-index. It would probably be slightly larger but also much more versatile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions