2010-08-29 21:37:02 +02:00
|
|
|
{stdenv, fetchurl, udev, intltool, python, pkgconfig, glib, xmlto,
|
2010-11-28 10:46:51 +01:00
|
|
|
makeWrapper, pygobject, pygtk, docbook_xml_dtd_412, docbook_xsl,
|
|
|
|
pythonDBus, libxml2, desktop_file_utils, libusb, cups, pycups,
|
|
|
|
notify }:
|
2010-08-29 21:37:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${meta.name}-${meta.version}";
|
2009-02-25 17:05:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-08-29 21:37:02 +02:00
|
|
|
url = "http://cyberelk.net/tim/data/${meta.name}/1.2/${name}.tar.bz2";
|
|
|
|
sha256 = "16xjvahmdkkix7281gx7ac9zqaxgfb7pjjlgcc6kmw52cifk86ww";
|
|
|
|
};
|
|
|
|
buildInputs = [ udev intltool python pkgconfig glib xmlto docbook_xml_dtd_412
|
2010-11-28 10:46:51 +01:00
|
|
|
libxml2 docbook_xsl desktop_file_utils libusb cups makeWrapper pygobject
|
|
|
|
pygtk pythonDBus pycups notify ];
|
2010-08-29 21:37:02 +02:00
|
|
|
|
|
|
|
configureFlags = "--with-udev-rules";
|
|
|
|
|
2010-11-28 10:46:51 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/system-config-printer --set PYTHONPATH "$PYTHONPATH:$(toPythonPath $out):$(toPythonPath ${notify})/gtk-2.0"
|
|
|
|
'';
|
|
|
|
|
2010-08-29 21:37:02 +02:00
|
|
|
meta = {
|
|
|
|
name = "system-config-printer";
|
|
|
|
version = "1.2.4";
|
2009-02-25 17:05:13 +01:00
|
|
|
};
|
|
|
|
}
|