GNU IceCat 3.6: Disable WiFi stuff for now.

svn path=/nixpkgs/trunk/; revision=19744
This commit is contained in:
Ludovic Courtès 2010-02-01 09:16:56 +00:00
parent 1664ec986a
commit d5219beafc
2 changed files with 35 additions and 28 deletions

View File

@ -1,9 +1,14 @@
{ fetchurl, stdenv, pkgconfig, gtk, pango, perl, python, ply, zip, libIDL
, libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs, alsaLib
, libnotify, gnomevfs, libgnomeui
, freetype, fontconfig
, freetype, fontconfig, wirelesstools ? null
, application ? "browser" }:
# Build the WiFi stuff on Linux-based systems.
# FIXME: Disable for now until it can actually be built:
# http://thread.gmane.org/gmane.comp.gnu.gnuzilla/1376 .
#assert stdenv.isLinux -> (wirelesstools != null);
let version = "3.6"; in
stdenv.mkDerivation {
name = "icecat-${version}";
@ -13,35 +18,35 @@ stdenv.mkDerivation {
sha256 = "0fsf8zd8nncg1w1gg2jhlxwkbljvrx4mm9pywasklyi0gvi939ds";
};
buildInputs = [
libgnomeui libnotify gnomevfs alsaLib
pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2
python ply dbus dbus_glib pango freetype fontconfig
xlibs.libXi xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt
];
buildInputs =
[ libgnomeui libnotify gnomevfs alsaLib
pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2
python ply dbus dbus_glib pango freetype fontconfig
xlibs.libXi xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt
]
++ (stdenv.lib.optional false /* stdenv.isLinux */ wirelesstools);
patches = [
./skip-gre-registration.patch ./rpath-link.patch
];
configureFlags = [
"--enable-application=${application}"
"--enable-libxul"
"--disable-javaxpcom"
configureFlags =
[ "--enable-application=${application}"
"--enable-libxul"
"--disable-javaxpcom"
"--enable-optimize"
"--disable-debug"
"--enable-strip"
"--with-system-jpeg"
"--with-system-zlib"
"--with-system-bz2"
# "--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support"
"--enable-system-cairo"
#"--enable-system-sqlite" # <-- this seems to be discouraged
"--disable-crashreporter"
];
preConfigure = ''export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC"'';
"--enable-optimize"
"--disable-debug"
"--enable-strip"
"--with-system-jpeg"
"--with-system-zlib"
"--with-system-bz2"
# "--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support"
"--enable-system-cairo"
#"--enable-system-sqlite" # <-- this seems to be discouraged
"--disable-crashreporter"
]
++ (stdenv.lib.optional true /* (!stdenv.isLinux) */ "--disable-necko-wifi");
postInstall = ''
export dontPatchELF=1;
@ -79,8 +84,8 @@ stdenv.mkDerivation {
fi
# Put the GNU IceCat icon in the right place.
ensureDir $out/lib/$libDir/chrome/icons/default
ln -s ../../../icons/default.xpm $out/lib/$libDir/chrome/icons/default/
ensureDir "$out/lib/$libDir/chrome/icons/default"
ln -s ../../../icons/default.xpm "$out/lib/$libDir/chrome/icons/default/"
'';
meta = {

View File

@ -7150,7 +7150,8 @@ let
icecat3 = lowPrio (import ../applications/networking/browsers/icecat-3 {
inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo
python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify;
python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify
wirelesstools;
inherit (gnome) libIDL libgnomeui gnomevfs gtk pango;
inherit (pythonPackages) ply;
});
@ -7158,7 +7159,8 @@ let
icecatXulrunner3 = lowPrio (import ../applications/networking/browsers/icecat-3 {
application = "xulrunner";
inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo
python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify;
python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify
wirelesstools;
inherit (gnome) libIDL libgnomeui gnomevfs gtk pango;
inherit (pythonPackages) ply;
});