add the mozilla browser. The compilation process is nearly identical
to firefox, but there are some differences: - don't source in $topsrcdir/browser/config/mozconfig (does not exist it seems) - different source tarball (different version that is) - leave out the postinstall phase svn path=/nixpkgs/trunk/; revision=4116
This commit is contained in:
parent
6011c99f48
commit
3430d3d8a3
|
@ -0,0 +1,53 @@
|
|||
. $stdenv/setup
|
||||
|
||||
preConfigure=preConfigure
|
||||
preConfigure() {
|
||||
cat > .mozconfig <<EOF
|
||||
#. \$topsrcdir/browser/config/mozconfig
|
||||
ac_add_options --prefix=$out
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --enable-xft
|
||||
ac_add_options --disable-freetype2
|
||||
#ac_add_options --enable-swg
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-default-toolkit=gtk2
|
||||
#ac_add_options --disable-shared
|
||||
#ac_add_options --enable-static
|
||||
#ac_add_options --with-system-jpeg
|
||||
#ac_add_options --with-system-png
|
||||
#ac_add_options --with-system-zlib
|
||||
EOF
|
||||
}
|
||||
|
||||
#postInstall=postInstall
|
||||
postInstall() {
|
||||
|
||||
# Strip some more stuff
|
||||
strip -S $out/lib/*/* || true
|
||||
|
||||
# We don't need this (do we?)
|
||||
# rm -rf $out/include
|
||||
|
||||
# This fixes starting Firefox when there already is a running
|
||||
# instance. The `firefox' wrapper script actually expects to be
|
||||
# in the same directory as `run-mozilla.sh', apparently.
|
||||
cd $out/bin
|
||||
mv firefox ../lib/firefox-*/
|
||||
ln -s ../lib/firefox-*/firefox .
|
||||
|
||||
# Register extension etc.
|
||||
echo "running firefox -register..."
|
||||
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./firefox-bin -register) || false
|
||||
|
||||
echo "running regxpcom..."
|
||||
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./regxpcom) || false
|
||||
|
||||
# echo "running regchrome..."
|
||||
# (cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./regchrome) || false
|
||||
|
||||
}
|
||||
|
||||
makeFlags="-f client.mk build"
|
||||
|
||||
genericBuild
|
|
@ -0,0 +1,18 @@
|
|||
{stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL, libXi}:
|
||||
|
||||
# !!! assert libIDL.glib == gtk.glib;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "mozilla-1.7.12";
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.12/source/mozilla-1.7.12-source.tar.bz2;
|
||||
md5 = "f1ad6adbbc0510eb76d352c94c801fac";
|
||||
};
|
||||
|
||||
buildInputs = [pkgconfig gtk perl zip libIDL libXi];
|
||||
inherit gtk;
|
||||
|
||||
#patches = [./writable-copies.patch];
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{stdenv, fetchurl, perl, zip, gtk}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "mozilla-1.7.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.12/source/mozilla-1.7.12-source.tar.bz2;
|
||||
md5 = "f1ad6adbbc0510eb76d352c94c801fac";
|
||||
};
|
||||
buildInputs = [perl zip gtk];
|
||||
|
||||
}
|
|
@ -1427,6 +1427,13 @@ rec {
|
|||
qt = qt3;
|
||||
};
|
||||
|
||||
mozilla = (import ../applications/networking/browsers/mozilla) {
|
||||
inherit fetchurl pkgconfig stdenv perl zip;
|
||||
inherit (gtkLibs) gtk;
|
||||
inherit (gnome) libIDL;
|
||||
inherit (xlibs) libXi;
|
||||
};
|
||||
|
||||
firefox = (import ../applications/networking/browsers/firefox) {
|
||||
inherit fetchurl stdenv pkgconfig perl zip;
|
||||
inherit (gtkLibs) gtk;
|
||||
|
|
Loading…
Reference in New Issue