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 {
|
2006-12-27 17:57:53 +01:00
|
|
|
name = "firefox-2.0.0.1";
|
2006-10-04 15:59:41 +02:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2006-12-27 17:57:53 +01:00
|
|
|
url = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.1/source/firefox-2.0.0.1-source.tar.bz2;
|
|
|
|
sha1 = "52728b8f1fba8ab7d51962f6d021b31f02585e3f";
|
2006-10-04 15:59:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig gtk perl zip libIDL libXi libjpeg libpng zlib cairo
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [./writable-copies.patch];
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {inherit gtk;};
|
|
|
|
}
|