2006-02-15 18:04:11 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL, libXi
|
2006-02-16 09:46:28 +01:00
|
|
|
, libjpeg, libpng, zlib, cairo
|
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-08-03 20:04:39 +02:00
|
|
|
name = "firefox-1.5.0.6";
|
2005-09-09 17:44:15 +02:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2006-08-03 20:04:39 +02:00
|
|
|
url = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.6/source/firefox-1.5.0.6-source.tar.bz2;
|
|
|
|
sha1 = "3a659d384744cab77f90920f6d529c89";
|
2005-09-09 17:44:15 +02:00
|
|
|
};
|
|
|
|
|
2006-02-16 09:46:28 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig gtk perl zip libIDL libXi libjpeg libpng zlib cairo
|
|
|
|
];
|
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"
|
2006-02-28 13:03:35 +01:00
|
|
|
"--enable-svg"
|
2006-02-15 18:04:11 +01:00
|
|
|
"--enable-strip"
|
|
|
|
"--enable-default-toolkit=gtk2"
|
|
|
|
"--with-system-jpeg"
|
|
|
|
"--with-system-png"
|
|
|
|
"--with-system-zlib"
|
2006-02-16 09:46:28 +01:00
|
|
|
"--with-system-cairo"
|
2006-02-15 18:04:11 +01:00
|
|
|
]
|
|
|
|
++ (if enableOfficialBranding then ["--enable-official-branding"] else []);
|
|
|
|
|
2006-03-10 17:12:46 +01:00
|
|
|
meta = {
|
|
|
|
description = "Mozilla Firefox - the browser, reloaded";
|
|
|
|
};
|
2005-10-08 17:52:03 +02:00
|
|
|
}
|