1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

Add python-rsvg

this is required by solfrege, key-mon, and probably many more gtk applications
This commit is contained in:
Cillian de Róiste 2012-11-11 18:11:37 +01:00
parent 60898eb064
commit d900c86302
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ stdenv, fetchurl, gnome, librsvg, pkgconfig, pygtk, python }:
stdenv.mkDerivation rec {
version = "2.32";
name = "python-rsvg-${version}";
src = fetchurl {
url = "mirror://gnome/sources/gnome-python-desktop/${version}/gnome-python-desktop-${version}.0.tar.gz";
sha256 = "1xhh3h1qdnimydvv55pmqwyzjchhjwfvp951sjlq0180kskqrlj5";
};
configurePhase = ''
sed -e "s@{PYTHONDIR}/gtk-2.0@{PYTHONDIR}/@" -i rsvg/wscript
python waf configure --enable-modules=rsvg --prefix=$out
'';
buildPhase = "python waf build";
installPhase = "python waf install";
buildInputs = [ gnome.gnome_python librsvg pkgconfig pygtk python ];
meta = with stdenv.lib; {
homepage = "http://www.pygtk.org";
description = "The rsvg python module";
license = licenses.lgpl21;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -58,6 +58,8 @@
libbonoboui = callPackage ./platform/libbonoboui { };
python_rsvg = callPackage ./bindings/python-rsvg { };
at_spi = callPackage ./platform/at-spi { };
gtkhtml = callPackage ./platform/gtkhtml { };