From c323b0f25020fb3f3a91790fd2011e068b5de436 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 21 Sep 2004 15:31:23 +0000 Subject: [PATCH] * Use wxGTK 2.5 by default (since it works with the latest gtk, and is probably stable enough). * Supply installable gcc 3.4. svn path=/nixpkgs/trunk/; revision=1483 --- .../libraries/wxGTK-2.5/default.nix | 29 +++++++++++++++++++ pkgs/system/all-packages-generic.nix | 21 ++++++++++++-- pkgs/system/populate-cache.nix | 5 ++-- 3 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 pkgs/development/libraries/wxGTK-2.5/default.nix diff --git a/pkgs/development/libraries/wxGTK-2.5/default.nix b/pkgs/development/libraries/wxGTK-2.5/default.nix new file mode 100644 index 00000000000..6c6134b8698 --- /dev/null +++ b/pkgs/development/libraries/wxGTK-2.5/default.nix @@ -0,0 +1,29 @@ +{stdenv, fetchurl, pkgconfig, gtk, libXinerama, compat22 ? true}: + +assert pkgconfig != null && gtk != null; +assert gtk.libtiff != null; +assert gtk.libjpeg != null; +assert gtk.libpng != null; +assert gtk.libpng.zlib != null; + +stdenv.mkDerivation { + name = "wxGTK-2.5.2"; + + src = fetchurl { + url = http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.5.2.tar.bz2; + md5 = "b45874428b0164bfa5bd1a5a11b3eb4a"; + }; + + buildInputs = [ + pkgconfig gtk gtk.libtiff gtk.libjpeg gtk.libpng gtk.libpng.zlib + libXinerama + ]; + + configureFlags = [ + "--enable-gtk2" + (if compat22 then "--enable-compat22" else "--disable-compat22") + "--disable-precomp-headers" + ]; + + inherit gtk compat22; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index af759af8a90..f14bccc22cc 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -251,6 +251,14 @@ rec { profiledCompiler = gccWithProfiling; }; + gccWrapped = (import ../build-support/gcc-wrapper) { + nativeTools = false; + nativeGlibc = false; + gcc = stdenv.gcc; + inherit (stdenv.gcc) binutils glibc; + inherit stdenv; + }; + gcc_static = (import ../stdenv/nix-linux/gcc-static) { inherit fetchurl stdenv; }; @@ -553,11 +561,18 @@ rec { gnome = import ../development/libraries/gnome { inherit fetchurl stdenv pkgconfig audiofile - flex bison popt perl zlib libxml2 bzip2; + flex bison popt perl zlib libxml2 bzip2 + perlXMLParser; gtkLibs = gtkLibs22; }; - wxGTK = (import ../development/libraries/wxGTK) { + wxGTK = (import ../development/libraries/wxGTK-2.5) { + inherit fetchurl stdenv pkgconfig; + inherit (gtkLibs) gtk; + inherit (xlibs) libXinerama; + }; + + wxGTK24 = (import ../development/libraries/wxGTK) { inherit fetchurl stdenv pkgconfig; inherit (gtkLibs22) gtk; }; @@ -780,7 +795,7 @@ rec { }; vlc = (import ../applications/video/vlc) { - inherit fetchurl stdenv wxGTK libdvdcss libdvdplay + inherit fetchurl stdenv libdvdcss wxGTK libdvdplay mpeg2dec a52dec libmad x11; inherit (xlibs) libXv; alsa = alsaLib; diff --git a/pkgs/system/populate-cache.nix b/pkgs/system/populate-cache.nix index 47d99943a7d..f11012bfcb7 100644 --- a/pkgs/system/populate-cache.nix +++ b/pkgs/system/populate-cache.nix @@ -29,8 +29,7 @@ let { gnumake bisonnew flexnew - gcc - gcc34 + gccWrapped aterm strategoxt xdoc @@ -85,5 +84,5 @@ let { body = [ i686LinuxPkgs powerpcDarwinPkgs - ]; + ]; }