2007-10-12 20:38:39 +00:00
|
|
|
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
|
2008-02-02 20:41:06 +00:00
|
|
|
libXmu openssl dbus.libs cups pkgconfig libXext freetype fontconfig inputproto
|
2007-11-11 15:56:30 +00:00
|
|
|
fixesproto libXfixes glib libtiff];
|
2007-10-12 20:38:39 +00:00
|
|
|
prefixKey = "-prefix ";
|
2007-07-17 17:08:38 +00:00
|
|
|
configureFlags = "
|
2007-12-12 00:21:12 +00:00
|
|
|
-v -no-separate-debug-info -release
|
2007-10-12 20:38:39 +00:00
|
|
|
-system-zlib -system-libpng -system-libjpeg -fast
|
2007-07-17 17:08:38 +00:00
|
|
|
-qt-gif -confirm-license
|
2007-10-12 20:38:39 +00:00
|
|
|
-opengl -xrender -xrandr -xinerama -xcursor -qt-sql-mysql
|
2007-11-11 15:56:30 +00:00
|
|
|
-qdbus -cups -glib -xfixes
|
2007-10-12 20:38:39 +00:00
|
|
|
-fontconfig -I${freetype}/include/freetype2";
|
2008-02-10 17:35:17 +00:00
|
|
|
patchPhase = "sed -i 's@/bin/pwd@pwd@' configure; sed -i 's@/usr@/FOO@' config.tests/*/*.test mkspecs/*/*.conf";
|
2007-10-12 20:38:39 +00:00
|
|
|
}; in
|
|
|
|
rec {
|
|
|
|
trolltech = stdenv.mkDerivation (common // {
|
2007-12-12 00:21:12 +00:00
|
|
|
name = "qt-4.3.3";
|
2007-10-12 20:38:39 +00:00
|
|
|
src = fetchurl {
|
2007-12-12 00:21:12 +00:00
|
|
|
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.3.tar.gz;
|
|
|
|
sha256 = "0w0mfm0wwmbj1vnjn27rza1r9wj8k47mn9ril8swprffqnn4p4w9";
|
2007-10-12 20:38:39 +00:00
|
|
|
};
|
|
|
|
patchPhase = common.patchPhase;
|
|
|
|
});
|
|
|
|
kde = stdenv.mkDerivation (common // {
|
|
|
|
name = "qt-kde-4.3svn";
|
|
|
|
src = fetchsvn {
|
|
|
|
url = svn://anonsvn.kde.org/home/kde/trunk/qt-copy;
|
2008-02-10 17:35:17 +00:00
|
|
|
rev = "772114";
|
2008-02-10 17:42:20 +00:00
|
|
|
sha256 = "cf8b418af39663b37726adf456ac115be5d86bdca700d65954a52042e4992acd";
|
2007-10-12 20:38:39 +00:00
|
|
|
};
|
2007-11-11 15:56:30 +00:00
|
|
|
patchPhase = "mkdir .svn; bash apply_patches;" + common.patchPhase;
|
2007-10-12 20:38:39 +00:00
|
|
|
});
|
|
|
|
default = kde;
|
2007-07-17 17:08:38 +00:00
|
|
|
}
|