2006-10-04 15:59:41 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL, libXi
|
|
|
|
, libjpeg, libpng, zlib, cairo
|
|
|
|
|
|
|
|
, # If you want the resulting program to call itself "Firefox" instead
|
|
|
|
# of "Deer Park", enable this option. However, those binaries may
|
|
|
|
# not be distributed without permission from the Mozilla Foundation,
|
|
|
|
# see http://www.mozilla.org/foundation/trademarks/.
|
|
|
|
enableOfficialBranding ? false
|
|
|
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-01-06 13:43:00 +01:00
|
|
|
name = "firefox-2.0.0.20";
|
2006-10-04 15:59:41 +02:00
|
|
|
|
2009-07-02 16:26:24 +02:00
|
|
|
builder = ./2.0-builder.sh;
|
|
|
|
|
2006-10-04 15:59:41 +02:00
|
|
|
src = fetchurl {
|
2009-01-06 13:43:00 +01:00
|
|
|
url = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/source/firefox-2.0.0.20-source.tar.bz2;
|
|
|
|
sha1 = "16601fdbbb0a83b85fd053e76350f7da397f525e";
|
2006-10-04 15:59:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig gtk perl zip libIDL libXi libjpeg libpng zlib cairo
|
|
|
|
];
|
|
|
|
|
2007-02-27 16:15:20 +01:00
|
|
|
patches = [
|
|
|
|
./writable-copies.patch
|
|
|
|
# Ugh, inexplicable problem since GTK+ 2.10. Probably a Firefox
|
|
|
|
# bug, but I don't know. See
|
|
|
|
# http://lists.gobolinux.org/pipermail/gobolinux-users/2007-January/004344.html
|
|
|
|
./xlibs.patch
|
|
|
|
];
|
2006-10-04 15:59:41 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-application=browser"
|
|
|
|
"--enable-optimize"
|
|
|
|
"--disable-debug"
|
|
|
|
"--enable-xft"
|
|
|
|
"--disable-freetype2"
|
|
|
|
"--enable-svg"
|
|
|
|
"--enable-canvas"
|
|
|
|
"--enable-strip"
|
|
|
|
"--enable-default-toolkit=gtk2"
|
|
|
|
"--with-system-jpeg"
|
|
|
|
"--with-system-png"
|
|
|
|
"--with-system-zlib"
|
|
|
|
"--enable-system-cairo"
|
|
|
|
]
|
|
|
|
++ (if enableOfficialBranding then ["--enable-official-branding"] else []);
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Mozilla Firefox - the browser, reloaded";
|
2007-12-30 22:47:12 +01:00
|
|
|
homepage = http://www.mozilla.com/en-US/firefox/;
|
2006-10-04 15:59:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {inherit gtk;};
|
|
|
|
}
|