- Main points: Today, Replit releases the first version of rippkgs, a CLI for indexing and searching Nix expressions. It aims to provide quick and accurate package searches. The motivation is to help users interact with Nix more comfortably. It's used instead of existing tools like
nix-env
,nix search
,nix-locate
, and search.nixos.org.rippkgs
needs an index created byrippkgs-index
. It evaluates nixpkgs and generates a SQLite database. Users can search the index withrippkgs
. It uses a scalar function andfuzzy_matcher
crate for searching. It's also incorporated into the command-not-found handler. - Key information: Replit uses Nix to offer many programming languages. Existing tools have limitations.
rippkgs
focuses on speed and correctness.rippkgs-index
evaluates nixpkgs and creates an index. Users can search withrippkgs
and an index. The search uses a scalar function and fuzzy matching. It's incorporated into the command-not-found handler. - Important details:
nix-env
andnix search
are slow.nix-locate
is for known paths. search.nixos.org is for up-to-date channels.rippkgs-index
takes special measures to prevent failures. The index is a plain SQLite database and can be queried withsqlite3
.rippkgs
gives users better visibility in the command-not-found hook. Replit is hiring for writing CLIs.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。