summary refs log tree commit diff
path: root/pkgs/desktops/kde-4.5/utils/default.nix
blob: fb038179dafc2337f42d809564f1a7d9d29690dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ kdePackage, cmake, qt4, perl, gmp, python, libzip, libarchive, xz
, sip, pyqt4, pycups, rhpl, system_config_printer, qjson, shared_mime_info
, kdebase_workspace
, kdelibs, kdepimlibs, kdebase, kdebindings, automoc4, qimageblitz, qca2}:

kdePackage {
  pn = "kdeutils";
  v = "4.5.0";
  
  postPatch = ''
    cp -vn ${qjson}/share/apps/cmake/modules/FindQJSON.cmake cmake/modules
    sed -e "s@/usr\(/share/system-config-printer\)@${system_config_printer}\1@" -i \
      printer-applet/cmake-modules/FindSystemConfigPrinter.py \
      printer-applet/printer-applet.py
    sed -i -e "s|import cupshelpers.ppds, cupshelpers.cupshelpers|import ppds, cupshelpers|" printer-applet/cmake-modules/FindSystemConfigPrinter.py
    '';

  buildInputs = [ cmake qt4 perl gmp python libzip libarchive xz sip pyqt4
    pycups rhpl system_config_printer kdelibs kdepimlibs kdebase kdebindings
    automoc4 qimageblitz qca2 qjson shared_mime_info kdebase_workspace ];

  patches = [ ./log-feature.diff ];
                  
  meta = {
    description = "KDE Utilities";
    license = "GPL";
  };
}