[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    [Nix-dev] how to find packages by file?
From:       Roni Choudhury <aichoudh () gmail ! com>
Date:       2017-03-14 20:24:32
Message-ID: CACRd6-Nj-CHd6+DwfgnmAQdn7OkXwr=52ih8wH6d7E8Tn7ZRiQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all-

I have some newbie-type questions, I hope that's ok.

Right now I am trying to set up a shell.nix file for a project that is not
necessarily designed to work under Nix. I'm going about this mainly by
dropping into an "empyt" shell, ru nning the build process, observing what
fails, then adding a dependency to shell.nix file and trying again.

My main question is, *how do I know what package to include to make use of
a given file?* By way of example, I currently require the file
*libpangocairo-1.0.so.0*. I have this file in my nix store, at this path:
*/nix/store/zb524gnvar0ymb47m1jcy667f7cci6g1-pango-1.40.3/lib/libpangocairo-1.0.so.0*.
However, if I include "pango" in my buildInputs, I wind up with the package
at path */nix/store/d2xiaxchih5wz4h9kgndfz3qj8vn1znr-pango-1.40.3-bin*,
which does not contain the library files I need, nor even a lib directory.
With fontconfig, I am able to include fontconfig.lib in my buildInputs to
get the libraries for that package (and also fontconfig.dev to get header
files, etc.), but pango has no lib attribute. So my second question is, *how
do I know whether a package has .lib or .dev attributes?*

A followup question: *if I didn't have libpangocairo.* already in my store,
how would I know which package delivers it?*

And perhaps a related final question: *how do I know where a given
directory in /nix/store "came from" - that is, how can I link something in
the store to something in nixpkgs?*

I realize these are probably basic questions, but I'm trying to bootstrap
myself into higher understanding. Thanks in advance!

roni

[Attachment #5 (text/html)]

<div dir="ltr">Hi all-<div><br></div><div>I have some newbie-type questions, I hope \
that&#39;s ok.</div><div><br></div><div>Right now I am trying to set up a shell.nix \
file for a project that is not necessarily designed to work under Nix. I&#39;m going \
about this mainly by dropping into an &quot;empyt&quot; shell, ru nning the build \
process, observing what fails, then adding a dependency to shell.nix file and trying \
again.</div><div><br></div><div>My main question is, <b>how do I know what package to \
include to make use of a given file?</b>  By way of example, I currently require the \
file  <i>libpangocairo-1.0.so.0</i>. I have this file in my nix store, at this path:  \
<i>/nix/store/zb524gnvar0ymb47m1jcy667f7cci6g1-pango-1.40.3/lib/libpangocairo-1.0.so.0</i>. \
However, if I include &quot;pango&quot; in my buildInputs, I wind up with the package \
at path  <i>/nix/store/d2xiaxchih5wz4h9kgndfz3qj8vn1znr-pango-1.40.3-bin</i>, which \
does not contain the library files I need, nor even a lib directory. With fontconfig, \
I am able to include fontconfig.lib in my buildInputs to get the libraries for that \
package (and also fontconfig.dev to get header files, etc.), but pango has no lib \
attribute. So my second question is, <b>how do I know whether a package has .lib or \
.dev attributes?</b></div><div><b><br></b></div><div>A followup question: <b>if I \
didn&#39;t have libpangocairo.* already in my store, how would I know which package \
delivers it?</b></div><div><b><br></b></div><div>And perhaps a related final \
question: <b>how do I know where a given directory in /nix/store &quot;came \
from&quot; - that is, how can I link something in the store to something in \
nixpkgs?</b></div><div><b><br></b></div><div>I realize these are probably basic \
questions, but I&#39;m trying to bootstrap myself into higher understanding. Thanks \
in advance!</div><div><br></div><div>roni</div></div>



_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic