forked from mirrors/nixpkgs
Add python-rsvg
this is required by solfrege, key-mon, and probably many more gtk applications
This commit is contained in:
parent
60898eb064
commit
d900c86302
29
pkgs/desktops/gnome-2/bindings/python-rsvg/default.nix
Normal file
29
pkgs/desktops/gnome-2/bindings/python-rsvg/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -58,6 +58,8 @@
|
|||
|
||||
libbonoboui = callPackage ./platform/libbonoboui { };
|
||||
|
||||
python_rsvg = callPackage ./bindings/python-rsvg { };
|
||||
|
||||
at_spi = callPackage ./platform/at-spi { };
|
||||
|
||||
gtkhtml = callPackage ./platform/gtkhtml { };
|
||||
|
|
Loading…
Reference in a new issue