mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 03:25:02 +00:00
aa4d93482d
svn path=/nixpkgs/branches/stdenv-updates/; revision=10461
39 lines
1.4 KiB
Nix
39 lines
1.4 KiB
Nix
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
|
|
libXmu openssl dbus.libs cups pkgconfig libXext freetype fontconfig inputproto
|
|
fixesproto libXfixes glib libtiff];
|
|
prefixKey = "-prefix ";
|
|
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";
|
|
patchPhase = "sed -e 's@/bin/pwd@pwd@' -i configure; sed -e 's@/usr@/FOO@' -i config.tests/*/*.test -i mkspecs/*/*.conf";
|
|
}; in
|
|
rec {
|
|
trolltech = stdenv.mkDerivation (common // {
|
|
name = "qt-4.3.3";
|
|
src = fetchurl {
|
|
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.3.tar.gz;
|
|
sha256 = "0w0mfm0wwmbj1vnjn27rza1r9wj8k47mn9ril8swprffqnn4p4w9";
|
|
};
|
|
patchPhase = common.patchPhase;
|
|
});
|
|
kde = stdenv.mkDerivation (common // {
|
|
name = "qt-kde-4.3svn";
|
|
src = fetchsvn {
|
|
url = svn://anonsvn.kde.org/home/kde/trunk/qt-copy;
|
|
rev = "761061";
|
|
sha256 = "0mwbmzgqs9psw6hyh913g1jgvgr702qh4kfi2pvmrpkqvyagysg9";
|
|
};
|
|
patchPhase = "mkdir .svn; bash apply_patches;" + common.patchPhase;
|
|
});
|
|
default = kde;
|
|
}
|