[Nix-dev] Some NixOS beginner questions...

Kirill Elagin kirelagin at gmail.com
Sun Mar 30 23:39:50 CEST 2014


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
...

Yes, that takes some time. I don't know if there exists a faster way to
search nix expressions, probably, unfortunately, not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140331/38a640c5/attachment.html 


More information about the nix-dev mailing list