[Nix-dev] Some NixOS beginner questions...
Ben Franksen
ben.franksen at online.de
Mon Mar 31 02:47:45 CEST 2014
Kirill Elagin wrote:
> On Mon, Mar 31, 2014 at 1:35 AM, Kirill Elagin <kirelagin at gmail.com>
> wrote:
>>
>> You'll have to look it up in `pkgs/top-level/all-packages.nix`.
>> Either clone the nixpkgs repository or you can find a copy at
>> `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`.
>>
>
> Oh, and there is also `nix-env -qa` thing, that lists all the available
> packages.
> It has `-P` flag that tells it to print attribute paths. Combined with
> grep this lets you find what you need:
>
> % nix-env -qaP | grep kdepim
> nixos.pkgs.kde4_prev.kdepim
> kdepim-4.10.5
> nixos.pkgs.kde4.kdepim
> kdepim-4.11.5
> nixos.pkgs.kde4_next.kdepim
> kdepim-4.12.2
> ...
Thanks, this is very useful!
Cheers
Ben
--
"Make it so they have to reboot after every typo." -- Scott Adams
More information about the nix-dev
mailing list