nix-index
comma
Our great sponsors
nix-index | comma | |
---|---|---|
11 | 10 | |
715 | 958 | |
7.1% | 7.2% | |
5.6 | 7.0 | |
12 days ago | 12 days ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | MIT License |
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
-
Where to find SAR in the package manager?
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
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
If you are on another distro or mac os there is also nix-index
-
Nix Package Search
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"
-
Building a program in NixOS
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?
nix-index makes it trivial to find which package contains a given file.
-
How to properly setup git clang-format in a shell.nix
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
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
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.
comma
-
Is Using nix-env an Antipattern?
Nowadays, I tend to try things out with comma, then add them to my configuration for later use. Some tools are not even installed in my systems because I use them so infrequently - opening a terminal and running , freecad is basically as easy as actually having it installed.
-
hook nix-shell on zsh command not found
There's a version of this approach that uses nix-index to figure out which package a command is in called comma: https://github.com/nix-community/comma
-
Nix journey part 0: Learning and reference materials
Relatedly, check out comma. It's basically a shortcut prefix command that will search packages for the binary you want to run (via nix-index), and gives you an interactive choice if there are multiple. Which package was drill in again? No matter, I'll just prefix a comma :)
https://github.com/nix-community/comma
-
Alternative to the "dnf provides"
this + if you want to run a command automatically I suggest comma
-
Why does nix/nixos even allow the "temporary" install of things?
Yeah dude. Emphemeral installs are a feature, not a bug. Similar vein is , https://github.com/nix-community/comma
-
Auto `nix-shell -p package` on missing package
You're looking for https://github.com/nix-community/comma
- Keep packages installed without "polluting the environment"
-
Reddit, Twitter, Shopify scramble to deploy 'instant buy' 2021 MacBook Pro
One of the nicest tools is comma. https://github.com/Shopify/comma. It's just a light weight wrapper around searching nix-pkgs and running something, but it sure makes a lot of things easier when you're sharing somebody else's laptop.
-
Having trouble getting started adding packages to my user
If you want to test out some program, I would STRONGLY recommend using nix-shell -p . This will create temporary environment, that will allow you to test out the package. You can also check out comma.
-
JOIN NIXOS TODAY OR BECOME INSIGNIFICANT TOMORROW!
I love using Shopifys comma tool https://github.com/Shopify/comma cause it's so useful for just small programs that u need to run once and then forget about them
What are some alternatives?
nix-index-database - Weekly updated nix-index database [maintainer=@Mic92]
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
colmena - A simple, stateless NixOS deployment tool
nix-direnv - A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
nickel - Better configuration for less
machine-configuration - Configuration files for my NixOS installs
persway - Petite Puppeteer of Pandemonium - your very own Sway IPC Imp
NUR - Nix User Repository: User contributed nix packages [maintainer=@Mic92]
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
issue-tracker - Fedora Silverblue issue tracker
cue - The home of the CUE language! Validate and define text-based and dynamic configuration
nixos - My personal NixOS infrastructure