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