summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-3/default.nix
blob: 1ad77006df59e7497871d066e423692a3de85192 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ xftSupport ? true
, xrenderSupport ? true
, threadSupport ? true
, mysqlSupport ? true
, stdenv, fetchurl, x11, libXft ? null, libXrender ? null, mysql ? null
, zlib, libjpeg, libpng, which
}:

assert xftSupport -> libXft != null;
assert xrenderSupport -> xftSupport && libXft != null;
assert mysqlSupport -> mysql != null;

stdenv.mkDerivation {
  name = "qt-3.3.5";

  builder = ./builder.sh;
  substitute = ../../../build-support/substitute/substitute.sh;
  hook = ./setup-hook.sh;  
  src = fetchurl {
    url = http://nix.cs.uu.nl/dist/tarballs/qt-x11-free-3.3.5.tar.bz2;
    md5 = "05d04688c0c0230ed54e89102d689ca4";
  };

  buildInputs = [x11 libXft libXrender zlib libjpeg libpng which];

  # Don't strip everything so we can get useful backtraces.
  patches = [./strip.patch ./qt-pwd.patch];
  
  inherit threadSupport xftSupport libXft xrenderSupport libXrender;
  inherit mysqlSupport;
  mysql = if mysqlSupport then mysql else null;
  inherit (libXft) freetype fontconfig;
}