nixpkgs/pkgs/development/libraries/qt-3/default.nix
Armijn Hemel dae499bd6d add a patch which removes a dependency on /bin/pwd so it can be built on
NixOS. It also prevents the following warning:

./configure: line 19: /bin/pwd: No such file or directory
./configure: line 21: /bin/pwd: No such file or directory
The LICENSE, LICENSE.QPL, or LICENSE.GPL file shipped with
this software has disappeared.

Sorry, you are not licensed to use this software.
Try re-installing.

:D

svn path=/nixpkgs/trunk/; revision=4272
2005-11-12 19:07:37 +00:00

34 lines
989 B
Nix

{ 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.3";
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.3.tar.bz2;
md5 = "3e0a0c8429b0a974b39b5f535ddff01c";
};
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;
}