nix-index VS nix-search-cli

Compare nix-index vs nix-search-cli and see what are their differences.

nix-index

Quickly locate nix packages with specific files [maintainers=@bennofs @figsoda @raitobezarius] (by nix-community)

nix-search-cli

CLI for searching packages on search.nixos.org (by peterldowns)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
nix-index nix-search-cli
11 3
715 82
7.1% -
5.6 3.9
12 days ago 8 months ago
Rust Go
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nix-index

Posts with mentions or reviews of nix-index. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-24.
  • Where to find SAR in the package manager?
    3 projects | /r/NixOS | 24 Jun 2023
    nix-index can be used to provide this functionality, and to automate this process you can use nix-index-database (setup instructions are in the README).
  • Nix journey part 0: Learning and reference materials
    11 projects | news.ycombinator.com | 1 Mar 2023
    Are you using flakes? AFAIK `command-not-found` does not work with them. See https://github.com/NixOS/nixpkgs/issues/171054 and https://discourse.nixos.org/t/why-isnt-there-an-official-bui...

    I think `nix-index` works as a replacement: https://github.com/bennofs/nix-index

  • spd-say on NixOS
    1 project | /r/NixOS | 20 Jan 2023
    If you are on another distro or mac os there is also nix-index
  • Nix Package Search
    2 projects | /r/NixOS | 5 Nov 2022
    nix-index is another option for searching for pkgs. You can search by name, or by specific files within a pkg.
  • Alternative to the "dnf provides"
    2 projects | /r/NixOS | 15 Oct 2022
  • Building a program in NixOS
    1 project | /r/NixOS | 4 Aug 2022
    You can use nix-locate from https://github.com/bennofs/nix-index to find files on NixOS:
  • What is the package to install the gsettings binary?
    1 project | /r/NixOS | 11 Jun 2022
    nix-index makes it trivial to find which package contains a given file.
  • How to properly setup git clang-format in a shell.nix
    2 projects | /r/NixOS | 6 Jun 2022
    There are two ways I know of: - If you use old-school channels, there's an index in the channel. In particular, the command-not-found hook is able to use that. In this particular case, you would have to guess that git will look for the git-clang-tools, and command-not-found that. This looks like it only works for programs, not arbitrary files. - In any case, you can use the more general nix-index. That's what I did because I use flakes.
  • An automatically-updated nix-index
    2 projects | /r/NixOS | 15 May 2022
    I use nix-index a lot to find which derivation a file belongs to, but building the index takes a while and so I end up not updating it very frequently.
  • Rant: I want nix, but I'm almost done
    2 projects | /r/NixOS | 29 Jan 2022
    Look at the library missing say X Use nix-locate to find the derivation that includes libX.dylib file (if it can’t find the macOS dylib version of the file try using the same name for linux by changing dylib for so) Add the derivation to you environmental and try again It will find the next missing library on the next compile.

nix-search-cli

Posts with mentions or reviews of nix-search-cli. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-25.
  • Super Colliding Nix Stores: Nix Flakes for Millions of Developers
    10 projects | news.ycombinator.com | 25 May 2023
    - you may want to search from the command line

    `nix search` is a cruel joke which doesn't allow searching by the name/program that would be installed, only package name, and requires a flake name every time. Absolutely terrible interface.

    My tool is a single-install binary that performs fast and accurate search to help you find the right package name to install a given binary. I don't understand how after years of using other package managers anyone could want a search tool that does anything other than this by default.

    For more details on why this exists, check out https://github.com/peterldowns/nix-search-cli#motivation

  • Nix journey part 0: Learning and reference materials
    11 projects | news.ycombinator.com | 1 Mar 2023
    The nix package search website is OK, but it doesn't let you filter by the names of installed binaries. A lot of the time, you have a question like "what nixpkgs attribute do i install in order to get the `python3` command". I recently wrote a command line tool that allows you to do this. It uses the same elasticsearch index as the search website, but allows more powerful filtering. If anyone is thinking of getting into nix, please consider trying it out!

    https://github.com/peterldowns/nix-search-cli

  • Show HN: nix-search-cli: find Nix packages from the CLI
    1 project | news.ycombinator.com | 21 Feb 2023

What are some alternatives?

When comparing nix-index and nix-search-cli you can also consider the following projects:

nix-index-database - Weekly updated nix-index database [maintainer=@Mic92]

nixbyexample - Learn nix by example

colmena - A simple, stateless NixOS deployment tool

nixos-search - Search NixOS packages and options

nickel - Better configuration for less

buck2-nix - Do not taunt happy fun ball

persway - Petite Puppeteer of Pandemonium - your very own Sway IPC Imp

text - Haskell library for space- and time-efficient operations over Unicode text.

nix-doc - An interactive Nix documentation tool providing a CLI for function search, a Nix plugin for docs in the REPL, and a ctags implementation for Nix script

comma - Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]

cue - The home of the CUE language! Validate and define text-based and dynamic configuration

dateilager - Shared and versioned filesystem manager