* Qt updated to 4.4.3 in preparation of upgrading KDE to 4.2.

svn path=/nixpkgs/trunk/; revision=13974
This commit is contained in:
Eelco Dolstra 2009-02-03 16:32:56 +00:00
parent aecd8c4415
commit 6ed4aa7ecb
4 changed files with 35 additions and 15 deletions

View File

@ -1,13 +1,15 @@
args: with args;
stdenv.mkDerivation {
name = "qt-4.4.0";
name = "qt-4.4.3";
src = fetchurl {
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.4.0.tar.bz2;
sha256 = "871dc71c6c905212f2fea7e6598362114a3b6097c220b0b251f8d159ee7d706e";
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.4.3.tar.bz2;
sha256 = "1nfdf1aj6vb7qyacsnjyjxrnaf44hz7vzykf6zra2znd87pglz51";
};
setupHook = ./setup-hook.sh;
propagatedBuildInputs = [
libXft
libXrender
@ -37,14 +39,25 @@ stdenv.mkDerivation {
glib
libtiff
];
prefixKey = "-prefix ";
configureFlags = "
configureFlags = ''
-v -no-separate-debug-info -release
-system-zlib -system-libpng -system-libjpeg -fast
-qt-gif -confirm-license
-opengl -xrender -xrandr -xinerama -xcursor -qt-sql-mysql
-qdbus -cups -glib -xfixes
-fontconfig -I${freetype}/include/freetype2";
-fontconfig -I${freetype}/include/freetype2
'';
patchPhase = "sed -e 's@/bin/pwd@pwd@' -i configure; sed -e 's@/usr@/FOO@' -i config.tests/*/*.test -i mkspecs/*/*.conf";
patchPhase = ''
substituteInPlace configure --replace /bin/pwd pwd
sed -e 's@/usr@/FOO@' -i config.tests/*/*.test -i mkspecs/*/*.conf
'';
meta = {
homepage = http://www.qtsoftware.com/downloads/opensource/appdev/linux-x11-cpp;
description = "A cross-platform application framework for C++";
};
}

View File

@ -1,4 +1,5 @@
export QTDIR=@out@
if [ -n $qt4BadIncludes ]; then
for d in @out@/include/*; do
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$d";

View File

@ -256,6 +256,7 @@ rec {
optionalString = cond: string: if cond then string else "";
# Return the second argument if the first one is true or the empty version
# of the second argument.
ifEnable = cond: val:
@ -266,6 +267,7 @@ rec {
else if (val == true || val == false) then false
else null;
# Return a list of integers from `first' up to and including `last'.
range = first: last:
if builtins.lessThan last first

View File

@ -1,12 +1,16 @@
{stdenv, fetchurl, readline}: stdenv.mkDerivation {
{stdenv, fetchurl, readline}:
stdenv.mkDerivation {
name = "which-2.20";
src = fetchurl {
url = mirror://gnu/which/which-2.20.tar.gz;
sha256 = "1y2p50zadb36izzh2zw4dm5hvdiydqf3qa88l8kav20dcmfbc5yl";
};
buildInputs = [readline];
meta = {
homepage = http://ftp.gnu.org/gnu/which/;
};
}