[Nix-dev] Python bindings to librsvg or gnome-desktop

Marc Weber marco-oweber at gmx.de
Tue Jun 19 11:12:31 CEST 2012


gnome support is only rudimentary (enough to make some packages work).

Look at configure output of pygtk etc (force a rebuild [1] and do nix-store
-l $out-path)

If you start working on python stuff please be aware that I feel that
the current PYTHONPATH implementation in nixpkgs is not enough. Some
packages such as virtinst would require heavy patching - others do not.

For that reason I've tried an alternative implementation introducing
NIX_PYTHON_SITES: https://github.com/MarcWeber/nixpkgs/blob/experimental/nix-python-sites/.topmsg

But this might be totally unrelated to your issues.

> When creating a Nix expression that depends on python packages, Is it
> more desirable to depend on pythonPackages or the inherit the
> pythonPackages.* subpackages as necessary?
I don't know. I personally tried packaging everything found on PyPi -
but that index is not that well maintained - a lot of libraries are
missing. So for now I expect a lot of manual work to be done on python
packages.

The common case seems to be that packages which have lot's of C
dependencies (such as gtk) are more likely to be put into top-level
files. Whether this is desired behaviour - I don't know exactly.

If you publish your patches I may have a look at it.

That's my personal view on it.

Marc Weber


More information about the nix-dev mailing list