2007-10-12 22:38:39 +02:00
|
|
|
args: with args;
|
2009-02-03 17:32:56 +01:00
|
|
|
|
2008-05-10 11:09:56 +02:00
|
|
|
stdenv.mkDerivation {
|
2009-04-03 14:32:33 +02:00
|
|
|
name = "qt-4.5.0";
|
2008-05-10 11:09:56 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-04-03 14:25:57 +02:00
|
|
|
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.5.0.tar.bz2;
|
|
|
|
sha256 = "e1b356a54e65781ed94f19d785356a88daa8d38b9dbbca35439b80ca8c4a5be9";
|
2008-05-10 11:09:56 +02:00
|
|
|
};
|
|
|
|
|
2009-02-03 17:32:56 +01:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2008-05-10 11:09:56 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
libXft
|
|
|
|
libXrender
|
|
|
|
libXrandr
|
|
|
|
randrproto
|
|
|
|
xextproto
|
|
|
|
libXinerama
|
|
|
|
xineramaproto
|
|
|
|
libXcursor
|
|
|
|
zlib
|
|
|
|
libjpeg
|
|
|
|
mysql
|
|
|
|
libpng
|
|
|
|
which
|
|
|
|
mesa
|
|
|
|
libXmu
|
|
|
|
openssl
|
|
|
|
dbus.libs
|
|
|
|
cups
|
|
|
|
pkgconfig
|
|
|
|
libXext
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
inputproto
|
|
|
|
fixesproto
|
|
|
|
libXfixes
|
|
|
|
glib
|
|
|
|
libtiff
|
|
|
|
];
|
2009-02-03 17:32:56 +01:00
|
|
|
|
2007-10-12 22:38:39 +02:00
|
|
|
prefixKey = "-prefix ";
|
2009-02-03 17:32:56 +01:00
|
|
|
|
|
|
|
configureFlags = ''
|
2007-12-12 01:21:12 +01:00
|
|
|
-v -no-separate-debug-info -release
|
2007-10-12 22:38:39 +02:00
|
|
|
-system-zlib -system-libpng -system-libjpeg -fast
|
2007-07-17 19:08:38 +02:00
|
|
|
-qt-gif -confirm-license
|
2007-10-12 22:38:39 +02:00
|
|
|
-opengl -xrender -xrandr -xinerama -xcursor -qt-sql-mysql
|
2009-02-12 22:43:03 +01:00
|
|
|
-qdbus -cups -glib -xfixes -dbus-linked
|
2009-02-03 17:32:56 +01:00
|
|
|
-fontconfig -I${freetype}/include/freetype2
|
|
|
|
'';
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace configure --replace /bin/pwd pwd
|
|
|
|
sed -e 's@/usr@/FOO@' -i config.tests/*/*.test -i mkspecs/*/*.conf
|
|
|
|
'';
|
2008-05-10 11:09:56 +02:00
|
|
|
|
2009-02-05 10:55:10 +01:00
|
|
|
# Remove the documentation: it takes up >= 130 MB, which is more
|
|
|
|
# than half of the installed size. Ideally we should put this in a
|
|
|
|
# separate package (as well as the Qt Designer).
|
|
|
|
postInstall = ''
|
2009-02-20 16:31:29 +01:00
|
|
|
rm -rf $out/doc
|
2009-02-05 10:55:10 +01:00
|
|
|
'';
|
|
|
|
|
2009-02-03 17:32:56 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.qtsoftware.com/downloads/opensource/appdev/linux-x11-cpp;
|
|
|
|
description = "A cross-platform application framework for C++";
|
|
|
|
};
|
2007-07-17 19:08:38 +02:00
|
|
|
}
|