2013-04-21 04:46:18 +02:00
|
|
|
|
{ kde, kdelibs
|
2013-05-06 16:29:27 +02:00
|
|
|
|
, pythonPackages, cups, sip, pyqt4, pykde4, pycups, rhpl, system_config_printer
|
2013-04-21 04:46:18 +02:00
|
|
|
|
, pythonDBus, makeWrapper }:
|
|
|
|
|
|
|
|
|
|
let s_c_p = system_config_printer.override { withGUI = false; }; in
|
|
|
|
|
|
|
|
|
|
kde rec {
|
|
|
|
|
buildInputs = [ kdelibs pythonPackages.python pythonPackages.wrapPython
|
|
|
|
|
] ++ pythonPath;
|
|
|
|
|
|
2013-05-06 16:29:27 +02:00
|
|
|
|
pythonPath = [ cups pyqt4 pykde4 pycups s_c_p ];
|
2013-04-21 04:46:18 +02:00
|
|
|
|
|
|
|
|
|
passthru.propagatedUserEnvPackages = [ s_c_p ];
|
|
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
|
''
|
|
|
|
|
wrapPythonPrograms
|
|
|
|
|
|
|
|
|
|
# ‘system-config-printer’ supplies some D-Bus policy that we need.
|
|
|
|
|
mkdir -p $out/nix-support
|
|
|
|
|
echo ${s_c_p} > $out/nix-support/propagated-user-env-packages
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "KDE printer manager";
|
|
|
|
|
longDescription = "Applet to view current print jobs and configure new printers";
|
|
|
|
|
};
|
|
|
|
|
}
|