3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/qt-4/default.nix
Yury G. Kudryashov 51e3a34bdb Added kde-team version for qt4.
KDE4 needs their own version of qt4 (with KDE patches). I've added this version.
You could choose Trolltech version for specific package by
qt4 = qt4_alts.trolltech
or change default in configuration.nix

svn path=/nixpkgs/trunk/; revision=9458
2007-10-12 20:38:39 +00:00

38 lines
1.4 KiB
Nix

args: with args;
let common =
rec {
setupHook = ./setup-hook.sh;
propagatedBuildInputs = [libXft libXrender libXrandr randrproto xextproto
libXinerama xineramaproto libXcursor zlib libjpeg mysql libpng which mesa
libXmu openssl dbus cups pkgconfig libXext freetype fontconfig inputproto
fixesproto libXfixes glib];
prefixKey = "-prefix ";
configureFlags = "
-v -no-separate-debug-info -release -nomake examples -nomake demos
-system-zlib -system-libpng -system-libjpeg -fast
-qt-gif -confirm-license
-opengl -xrender -xrandr -xinerama -xcursor -qt-sql-mysql
-L${mysql}/lib/mysql -I${mysql}/include/mysql -qdbus -cups -glib -xfixes
-fontconfig -I${freetype}/include/freetype2";
patchPhase = "sed -e 's@/bin/pwd@pwd@' -i configure; sed -e 's@/usr@/FOO@' -i config.tests/*/*.test -i mkspecs/*/*.conf";
}; in
rec {
trolltech = stdenv.mkDerivation (common // {
name = "qt-4.3.1";
src = fetchurl {
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.1.tar.gz;
sha256 = "0qg6apy2r7jbbfinxh0v1jm08yv890r40hhmy5cysn239v3x0nad";
};
patchPhase = common.patchPhase;
});
kde = stdenv.mkDerivation (common // {
name = "qt-kde-4.3svn";
src = fetchsvn {
url = svn://anonsvn.kde.org/home/kde/trunk/qt-copy;
md5 = "b0588d8ef36642613bdb92930a2330b4";
};
patchPhase = "mkdir .svn; bash apply_patches;patch -R -p0 < patches/0172-prefer-xrandr-over-xinerama.diff;" + common.patchPhase;
});
default = kde;
}