nixpkgs/pkgs/desktops/kde-4.7/kdeutils/printer-applet.nix
Yury G. Kudryashov 8abd44f249 Big kde-4.7.0 update
* Remove a lot of code duplication.
* Package almost all (except for smoke-based bindings).

svn path=/nixpkgs/trunk/; revision=28597
2011-08-15 18:06:26 +00:00

29 lines
771 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ kde, kdelibs
, pythonPackages, sip, pyqt4, pykde4, pycups, rhpl, system_config_printer
, pythonDBus, makeWrapper }:
let s_c_p = system_config_printer.override { withGUI = false; }; in
kde rec {
buildInputs = [ kdelibs pythonPackages.python pythonPackages.wrapPython
] ++ pythonPath;
pythonPath = [ pyqt4 pykde4 pycups s_c_p ];
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 applet";
longDescription = "Applet to view current print jobs and configure new printers";
};
}