nix search nixpkgs aaxtomp3
* legacyPackages.x86_64-linux.aaxtomp3 (1.3)
Convert Audible's .aax filetype to MP3, FLAC, M4A, or OPUS
but not able to install it:
building Nix...
building the system configuration...
error: undefined variable 'aaxtomp3'
at /etc/nixos/configuration-supplement.nix:148:5:
148| aaxtomp3
| ^
(use '--show-trace' to show detailed location information)
Thanks @wamserma! I am surprised because I expected nix search to provide an introspection of the current system. What options do I have to install the package beside moving to unstable (nix-channel update didn’t help)?
If you do nix search nixpkgs whatver nix first updates it’s flake info on the given channel (here: nixpkgs), then searches for whatever.
You can add the release channel to the registry, then tell search to use this flake.
Edit: In my home-manager config I have:
nix.registry = {
nixos = {
from = { type = "indirect"; id = "nixos"; };
flake = args.nixpkgs;
};
so I can do nix search nixos whateer and it will match what is available on my current system.
Edit2: If you only need the tool occasionally, you don’t need to install it at all, just use nix run nixpkgs#aaxtomp3 or nix shell nixpkgs#aaxtomp3. Otherwise, see the reference given by @nixinator below.