diff options
Diffstat (limited to 'pkgs/desktops/kde-4.2/admin')
-rw-r--r-- | pkgs/desktops/kde-4.2/admin/builder.sh | 13 | ||||
-rw-r--r-- | pkgs/desktops/kde-4.2/admin/default.nix | 16 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/desktops/kde-4.2/admin/builder.sh b/pkgs/desktops/kde-4.2/admin/builder.sh new file mode 100644 index 0000000000000..09cb930f04984 --- /dev/null +++ b/pkgs/desktops/kde-4.2/admin/builder.sh @@ -0,0 +1,13 @@ +source $stdenv/setup + +myPatchPhase() +{ + for i in system-config-printer-kde/cmake-modules/FindSystemConfigPrinter.py system-config-printer-kde/system-config-printer-kde.py + do + sed -i -e "s|/usr/share/system-config-printer|$system_config_printer/share/system-config-printer|" $i + done + + sed -i -e "s|import cupshelpers.ppds, cupshelpers.cupshelpers|import ppds, cupshelpers|" system-config-printer-kde/cmake-modules/FindSystemConfigPrinter.py +} +patchPhase=myPatchPhase +genericBuild diff --git a/pkgs/desktops/kde-4.2/admin/default.nix b/pkgs/desktops/kde-4.2/admin/default.nix new file mode 100644 index 0000000000000..a741525b07100 --- /dev/null +++ b/pkgs/desktops/kde-4.2/admin/default.nix @@ -0,0 +1,16 @@ +{stdenv, fetchurl, cmake, qt4, pkgconfig, perl, python, + sip, pyqt4, pycups, system_config_printer, rhpl, + kdelibs, kdepimlibs, kdebindings, automoc4, phonon}: + +stdenv.mkDerivation { + name = "kdeadmin-4.2.1"; + src = fetchurl { + url = mirror://kde/stable/4.2.1/src/kdeadmin-4.2.1.tar.bz2; + sha1 = "888203103fe86010461b1e38d51ba9a20f3250e8"; + }; + builder = ./builder.sh; + inherit system_config_printer; + CMAKE_PREFIX_PATH=kdepimlibs; + buildInputs = [ cmake qt4 pkgconfig perl python sip pyqt4 pycups system_config_printer rhpl + kdelibs kdepimlibs kdebindings automoc4 phonon ]; +} |