2005-01-19 22:51:27 +00:00
|
|
|
{ xftSupport ? true
|
|
|
|
, xrenderSupport ? true
|
2005-01-20 14:23:34 +00:00
|
|
|
, threadSupport ? true
|
2005-01-22 00:19:27 +00:00
|
|
|
, mysqlSupport ? true
|
|
|
|
, stdenv, fetchurl, x11, libXft ? null, libXrender ? null, mysql ? null
|
2005-01-20 09:00:08 +00:00
|
|
|
, zlib, libjpeg, libpng, which
|
2005-01-19 22:51:27 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert xftSupport -> libXft != null;
|
|
|
|
assert xrenderSupport -> xftSupport && libXft != null;
|
2005-01-22 00:19:27 +00:00
|
|
|
assert mysqlSupport -> mysql != null;
|
2005-01-19 22:51:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-12-06 21:35:07 +00:00
|
|
|
name = "qt-3.3.5";
|
2005-01-19 22:51:27 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
2005-02-15 17:44:45 +00:00
|
|
|
substitute = ../../../build-support/substitute/substitute.sh;
|
|
|
|
hook = ./setup-hook.sh;
|
2005-01-19 22:51:27 +00:00
|
|
|
src = fetchurl {
|
2006-01-30 16:04:03 +00:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/qt-x11-free-3.3.5.tar.bz2;
|
2005-12-06 21:35:07 +00:00
|
|
|
md5 = "05d04688c0c0230ed54e89102d689ca4";
|
2005-01-19 22:51:27 +00:00
|
|
|
};
|
|
|
|
|
2005-01-20 09:00:08 +00:00
|
|
|
buildInputs = [x11 libXft libXrender zlib libjpeg libpng which];
|
2005-01-19 22:51:27 +00:00
|
|
|
|
2005-03-02 11:31:49 +00:00
|
|
|
# Don't strip everything so we can get useful backtraces.
|
2005-11-12 19:07:37 +00:00
|
|
|
patches = [./strip.patch ./qt-pwd.patch];
|
2005-03-02 11:31:49 +00:00
|
|
|
|
2005-01-20 14:23:34 +00:00
|
|
|
inherit threadSupport xftSupport libXft xrenderSupport libXrender;
|
2005-11-01 11:58:06 +00:00
|
|
|
inherit mysqlSupport;
|
|
|
|
mysql = if mysqlSupport then mysql else null;
|
2005-01-19 22:51:27 +00:00
|
|
|
inherit (libXft) freetype fontconfig;
|
|
|
|
}
|