AI Briefing
KO

Searching Nixpkgs in Under 30ms

·2024.03.30 00:39

Key point

Replit has unveiled **rippkgs**, a CLI tool that can search Nixpkgs packages accurately at speeds under 30ms.

1 / 2

Details

Replit has released the first version of rippkgs, a CLI utility for indexing and searching Nix expressions. This allows users to search nixpkgs available on their system very quickly and accurately.

Existing tools like nix-env or nix search take several seconds to search, making them slow, while nix-locate is only useful when you know the specific path. Additionally, search.nixos.org only provides results from the latest channel, which posed significant constraints for Replit users who work with environments pinned to specific versions.

rippkgs is a solution focused on speed and accuracy. rippkgs-index safely evaluates nixpkgs expressions to create a SQLite database, and rippkgs uses this to return results in under 30 milliseconds.

Additionally, Replit has integrated this tool into its command-not-found handler, improving the experience so that users receive more detailed information when a package cannot be found.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.