args: with args; stdenv.mkDerivation rec { name = "kdelibs-4.0rc2"; src = fetchurl { url = mirror://kde/unstable/3.97/src/kdelibs-3.97.0.tar.bz2; sha256 = "0g9r7nph6hpdvbmchvp0h5xk4z0da0b5rskqpbixdplsdxcs8xhv"; }; propagatedBuildInputs = [ cmake inputproto kbproto scrnsaverproto xextproto xf86miscproto xf86vidmodeproto xineramaproto xproto libICE libX11 libXau libXcomposite libXcursor libXdamage libXdmcp libXext libXfixes libXft libXi libXpm libXrandr libXrender libXScrnSaver libXt libXtst libXv libXxf86misc libxkbfile zlib perl qt openssl pcre pkgconfig libjpeg libpng libtiff libxml2 libxslt expat libtool freetype bzip2 shared_mime_info alsaLib libungif cups gettext enchant openexr aspell stdenv.gcc.libc ] ++ kdesupport.all; patchPhase = "cp ${findIlmBase} ../cmake/modules/FindIlmBase.cmake; cp $findOpenEXR ../cmake/modules/FindOpenEXR.cmake; sed -e 's@Soprano/DummyModel@Soprano/Util/DummyModel@' -i ../nepomuk/core/resourcemanager.cpp;"; findIlmBase = ./FindIlmBase.cmake; findOpenEXR = ./FindOpenEXR.cmake; setupHook=./setup.sh; }