nix-index VS fd

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

nix-index

Quickly locate nix packages with specific files [maintainers=@bennofs @figsoda @raitobezarius] (by nix-community)
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 fd
11 172
715 31,581
7.1% -
5.6 8.8
12 days ago 14 days ago
Rust Rust
GNU General Public License v3.0 or later Apache License 2.0
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.

fd

Posts with mentions or reviews of fd. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-16.
  • Level Up Your Dev Workflow: Conquer Web Development with a Blazing Fast Neovim Setup (Part 1)
    12 projects | dev.to | 16 Mar 2024
    ripgrep: A super-fast file searcher. You can install it using your system's package manager (e.g., brew install ripgrep on macOS). fd: Another blazing-fast file finder. Installation instructions can be found here: https://github.com/sharkdp/fd
  • Hyperfine: A command-line benchmarking tool
    2 projects | news.ycombinator.com | 6 Feb 2024
    hyperfine is such a great tool that it's one of the first I reach for when doing any sort of benchmarking.

    I encourage anyone who's tried hyperfine and enjoyed it to also look at sharkdp's other utilities, they're all amazing in their own right with fd[1] being the one that perhaps get the most daily use for me and has totally replaced my use of find(1).

    [1]: https://github.com/sharkdp/fd

  • Z – Jump Around
    16 projects | news.ycombinator.com | 15 Jan 2024
    You call it with `n` and get an interactive fuzzy search for your directories. If you do `n ` instead, it’ll start the find with `` already filled in (and if there’s only one match, jump to it directly). The `ls` is optional but I find that I like having the contents visible as soon as I change a directory.

    I’m also including iCloud Drive but excluding the Library directory as that is too noisy. I have a separate `nl` function which searches just inside `~/Library` for when I need it, as well as other specialised `n` functions that search inside specific places that I need a lot.

    ¹ https://github.com/sharkdp/fd

    ² https://github.com/junegunn/fzf

  • Unix as IDE: Introduction (2012)
    3 projects | news.ycombinator.com | 27 Dec 2023
    Many (most?) of them have been overhauled with success. For find there is fd[1]. There's batcat, exa (ls), ripgrep, fzf, atuin (history), delta (diff) and many more.

    Most are both backwards compatible and fresh and friendly. Your hardwon muscle memory still of good use. But there's sane flags and defaults too. It's faster, more colorful (if you wish), better integration with another (e.g. exa/eza or aware of git modifications). And, in my case, often features I never knew I needed (atuin sync!, ripgrep using gitignore).

    1 https://github.com/sharkdp/fd

  • Tell HN: My Favorite Tools
    14 projects | news.ycombinator.com | 24 Dec 2023
  • Potencializando Sua Experiência no Linux: Conheça as Ferramentas em Rust para um Desenvolvimento Eficiente
    5 projects | dev.to | 12 Dec 2023
    Descubra mais sobre o fd em: https://github.com/sharkdp/fd
  • Making Hard Things Easy
    11 projects | news.ycombinator.com | 6 Oct 2023
    AFAIK there is a find replacement with sane defaults: https://github.com/sharkdp/fd , a lot of people I know love it.

    However, I already have this in my muscle memory:

  • 🐚🦀Comandos shell reescritos em Rust
    9 projects | dev.to | 4 Oct 2023
    fd
  • Oils 0.17.0 – YSH Is Becoming Real
    6 projects | news.ycombinator.com | 11 Aug 2023
    > without zsh globs I have to remember find syntax

    My "solution" to this is using https://github.com/sharkdp/fd (even when in zsh and having glob support). I'm not sure if using a tool that's not present by default would be suitable for your use cases, but if you're considering alternate shells, I suspect you might be

  • Bfs 3.0: The Fastest Find Yet
    6 projects | news.ycombinator.com | 19 Jul 2023
    Nice to see other alternatives to find. I personally use fd (https://github.com/sharkdp/fd) a lot, as I find the UX much better. There is one thing that I think could be better, around the difference between "wanting to list all files that follow a certain pattern" and "wanting to find one or a few specific files". Technically, those are the same, but an issue I'll often run into is wanting to search something in dotfiles (for example the Go tools), use the unrestricted mode, and it'll find the few files I'm looking for, alongside hundreds of files coming from some cache/backup directory somewhere. This happens even more with rg, as it'll look through the files contents.

    I'm not sure if this is me not using the tool how I should, me not using Linux how I should, me using the wrong tool for this job, something missing from the tool or something else entirely. I wonder if other people have this similar "double usage issue", and I'm interested in ways to avoid it.

What are some alternatives?

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

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

telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.

colmena - A simple, stateless NixOS deployment tool

ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore

nickel - Better configuration for less

fzf - :cherry_blossom: A command-line fuzzy finder

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

exa - A modern replacement for ‘ls’.

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

skim - Fuzzy Finder in rust!

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

vim-grepper - :space_invader: Helps you win at grep.