2006-02-15 18:04:11 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL, libXi
|
2005-09-09 17:44:15 +02:00
|
|
|
|
2006-02-15 18:04:11 +01:00
|
|
|
, # 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
|
|
|
|
|
|
|
|
}:
|
2005-09-09 17:44:15 +02:00
|
|
|
|
2005-10-08 17:52:03 +02:00
|
|
|
stdenv.mkDerivation {
|
2006-02-07 12:07:18 +01:00
|
|
|
name = "firefox-1.5.0.1";
|
2005-09-09 17:44:15 +02:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2006-02-07 12:07:18 +01:00
|
|
|
url = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.1/source/firefox-1.5.0.1-source.tar.bz2;
|
|
|
|
md5 = "c76f02956645bc823241379e27f76bb5";
|
2005-09-09 17:44:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [pkgconfig gtk perl zip libIDL libXi];
|
2005-10-08 17:52:03 +02:00
|
|
|
inherit gtk;
|
2005-09-09 17:44:15 +02:00
|
|
|
|
|
|
|
patches = [./writable-copies.patch];
|
2006-02-15 18:04:11 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-application=browser"
|
|
|
|
"--enable-optimize"
|
|
|
|
"--disable-debug"
|
|
|
|
"--enable-xft"
|
|
|
|
"--disable-freetype2"
|
|
|
|
"--enable-swg"
|
|
|
|
"--enable-strip"
|
|
|
|
"--enable-default-toolkit=gtk2"
|
|
|
|
"--with-system-jpeg"
|
|
|
|
"--with-system-png"
|
|
|
|
"--with-system-zlib"
|
|
|
|
]
|
|
|
|
++ (if enableOfficialBranding then ["--enable-official-branding"] else []);
|
|
|
|
|
2005-10-08 17:52:03 +02:00
|
|
|
}
|