system-config-printer: fix runtime errors. Patch by Karn Kallio.

svn path=/nixpkgs/trunk/; revision=24899
This commit is contained in:
Evgeny Egorochkin 2010-11-28 09:46:51 +00:00
parent a729c92721
commit b89f2ef1e4
2 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,7 @@
{stdenv, fetchurl, udev, intltool, python, pkgconfig, glib, xmlto,
docbook_xml_dtd_412, docbook_xsl, libxml2, desktop_file_utils, libusb, cups}:
makeWrapper, pygobject, pygtk, docbook_xml_dtd_412, docbook_xsl,
pythonDBus, libxml2, desktop_file_utils, libusb, cups, pycups,
notify }:
stdenv.mkDerivation rec {
name = "${meta.name}-${meta.version}";
@ -9,10 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "16xjvahmdkkix7281gx7ac9zqaxgfb7pjjlgcc6kmw52cifk86ww";
};
buildInputs = [ udev intltool python pkgconfig glib xmlto docbook_xml_dtd_412
libxml2 docbook_xsl desktop_file_utils libusb cups];
libxml2 docbook_xsl desktop_file_utils libusb cups makeWrapper pygobject
pygtk pythonDBus pycups notify ];
configureFlags = "--with-udev-rules";
postInstall = ''
wrapProgram $out/bin/system-config-printer --set PYTHONPATH "$PYTHONPATH:$(toPythonPath $out):$(toPythonPath ${notify})/gtk-2.0"
'';
meta = {
name = "system-config-printer";
version = "1.2.4";

View File

@ -1213,7 +1213,10 @@ let
svnfs = callPackage ../tools/filesystems/svnfs { };
system_config_printer = callPackage ../tools/misc/system-config-printer { };
system_config_printer = callPackage ../tools/misc/system-config-printer {
inherit (pythonPackages) notify;
libxml2 = libxml2Python;
};
sitecopy = callPackage ../tools/networking/sitecopy { };