2014-09-20 02:09:11 -07:00
|
|
|
{ kde, kdelibs
|
2016-08-14 04:22:02 -07:00
|
|
|
, pythonPackages, cups, pykde4, system-config-printer }:
|
2014-09-20 02:09:11 -07:00
|
|
|
|
2016-01-03 06:17:21 -08:00
|
|
|
let s_c_p = system-config-printer.override { withGUI = false; }; in
|
2014-09-20 02:09:11 -07:00
|
|
|
|
|
|
|
kde rec {
|
|
|
|
buildInputs = [ kdelibs pythonPackages.python pythonPackages.wrapPython
|
|
|
|
] ++ pythonPath;
|
|
|
|
|
2016-08-14 04:22:02 -07:00
|
|
|
pythonPath = [ cups pythonPackages.pyqt4 pykde4 pythonPackages.pycups s_c_p ];
|
2014-09-20 02:09:11 -07:00
|
|
|
|
2015-01-17 22:08:00 -08:00
|
|
|
# system-config-printer supplies some D-Bus policy that we need.
|
|
|
|
propagatedUserEnvPkgs = [ s_c_p ];
|
2014-09-20 02:09:11 -07:00
|
|
|
|
2015-01-17 22:08:00 -08:00
|
|
|
postInstall = "wrapPythonPrograms";
|
2014-09-20 02:09:11 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "KDE printer manager";
|
|
|
|
longDescription = "Applet to view current print jobs and configure new printers";
|
|
|
|
};
|
|
|
|
}
|