[Nix-dev] how to find packages by file?
Domen Kožar
domen at dev.si
Wed Mar 15 16:00:07 CET 2017
https://github.com/Enlambda/nix-channelstatus has working RESTful API to
search by files,
I plan to publish that as a web service in upcoming weeks.
On Wed, Mar 15, 2017 at 3:55 PM, Profpatsch <mail at profpatsch.de> wrote:
> On 17-03-15 01:13pm, Linus Heckemann wrote:
> > On 14/03/17 20:24, Roni Choudhury wrote:
> > 2. Use nix-repl — `nix-repl '<nixpkgs>'` will give you a REPL for the
> > nix language with autocompletion for that sort of thing, which can be
> > very helpful.
>
> Can confirm. Normally I use
> find /nix/store -iname "*library.so"
> to find the package name,
> then I grep nixpkgs for that name
> then I look at the outputs (whether it’s in `lib` or `out`)
> then I grep nixpkgs for the filename to find the attribute name
>
> The naming schemes are pretty similar, it could probably
> be automated fairly well.
>
> --
> Proudly written in Mutt with Vim on NixOS.
> Q: Why is this email five sentences or less?
> A: http://five.sentenc.es
> May take up to five days to read your message. If it’s urgent, call me.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170315/e7e6cca6/attachment.html>
More information about the nix-dev
mailing list