2011-07-29 13:31:07 +01:00
|
|
|
|
{ kde, cmake, kdelibs, qt4, automoc4, phonon
|
|
|
|
|
, pythonPackages, sip, pyqt4, pykde4, pycups, rhpl, system_config_printer
|
|
|
|
|
, pythonDBus, makeWrapper }:
|
2011-07-07 21:48:51 +01:00
|
|
|
|
|
2011-07-29 13:31:07 +01:00
|
|
|
|
kde.package rec {
|
|
|
|
|
buildInputs =
|
|
|
|
|
[ cmake qt4 kdelibs automoc4 phonon
|
|
|
|
|
pythonPackages.python pythonPackages.wrapPython
|
|
|
|
|
] ++ pythonPath;
|
2011-07-07 21:48:51 +01:00
|
|
|
|
|
2011-07-29 13:31:07 +01:00
|
|
|
|
pythonPath = [ pyqt4 pykde4 pycups system_config_printer ];
|
2011-07-07 21:48:51 +01:00
|
|
|
|
|
2011-07-29 13:31:07 +01:00
|
|
|
|
postInstall =
|
|
|
|
|
''
|
|
|
|
|
wrapPythonPrograms
|
|
|
|
|
|
|
|
|
|
# ‘system-config-printer’ supplies some D-Bus policy that we need.
|
|
|
|
|
mkdir -p $out/nix-support
|
|
|
|
|
echo ${system_config_printer} > $out/nix-support/propagated-user-env-packages
|
|
|
|
|
'';
|
|
|
|
|
|
2011-07-07 21:48:51 +01:00
|
|
|
|
meta = {
|
|
|
|
|
description = "KDE printer applet";
|
|
|
|
|
longDescription = "Applet to view current print jobs and configure new printers";
|
|
|
|
|
kde = {
|
|
|
|
|
name = "printer-applet";
|
|
|
|
|
module = "kdeutils";
|
2011-07-29 13:31:07 +01:00
|
|
|
|
version = "1.7";
|
2011-07-07 21:48:51 +01:00
|
|
|
|
versionFile = "printer-applet.py";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|