1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

* Added NSPR, the Netscape Portable Runtime, and use it in Xulrunner

and Firefox.
* Xulrunner: don't install the tests.  This saves a few megabytes.

svn path=/nixpkgs/trunk/; revision=16173
This commit is contained in:
Eelco Dolstra 2009-07-04 12:25:35 +00:00
parent fd7a6cd6b5
commit b8558fd04f
3 changed files with 32 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, gtk, pango, perl, python, zip, libIDL { stdenv, fetchurl, pkgconfig, gtk, pango, perl, python, zip, libIDL
, libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs , libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs
, freetype, fontconfig, file, alsaLib , freetype, fontconfig, file, alsaLib, nspr
, # If you want the resulting program to call itself "Firefox" instead , # If you want the resulting program to call itself "Firefox" instead
# of "Deer Park", enable this option. However, those binaries may # of "Deer Park", enable this option. However, those binaries may
@ -29,10 +29,12 @@ rec {
"--with-system-jpeg" "--with-system-jpeg"
"--with-system-zlib" "--with-system-zlib"
"--with-system-bz2" "--with-system-bz2"
"--with-system-nspr"
# "--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support" # "--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support"
"--enable-system-cairo" "--enable-system-cairo"
#"--enable-system-sqlite" # <-- this seems to be discouraged #"--enable-system-sqlite" # <-- this seems to be discouraged
"--disable-crashreporter" "--disable-crashreporter"
"--disable-tests"
]; ];
@ -45,7 +47,7 @@ rec {
[ pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2 [ pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2
python dbus dbus_glib pango freetype fontconfig xlibs.libXi python dbus dbus_glib pango freetype fontconfig xlibs.libXi
xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt file xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt file
alsaLib alsaLib nspr
]; ];
configureFlags = configureFlags =
@ -63,8 +65,6 @@ rec {
postInstall = '' postInstall = ''
export dontPatchELF=1 export dontPatchELF=1
make -C nsprpub install
# Fix some references to /bin paths in the Xulrunner shell script. # Fix some references to /bin paths in the Xulrunner shell script.
substituteInPlace $out/bin/xulrunner \ substituteInPlace $out/bin/xulrunner \
--replace /bin/pwd "$(type -tP pwd)" \ --replace /bin/pwd "$(type -tP pwd)" \
@ -102,7 +102,7 @@ rec {
buildInputs = buildInputs =
[ pkgconfig gtk perl zip libIDL libjpeg zlib cairo bzip2 python [ pkgconfig gtk perl zip libIDL libjpeg zlib cairo bzip2 python
dbus dbus_glib pango freetype fontconfig alsaLib dbus dbus_glib pango freetype fontconfig alsaLib nspr
]; ];
propagatedBuildInputs = [xulrunner]; propagatedBuildInputs = [xulrunner];
@ -110,7 +110,6 @@ rec {
configureFlags = configureFlags =
[ "--enable-application=browser" [ "--enable-application=browser"
"--with-libxul-sdk=${xulrunner}/lib/xulrunner-devel-${xulrunner.version}" "--with-libxul-sdk=${xulrunner}/lib/xulrunner-devel-${xulrunner.version}"
"--with-system-nspr"
] ]
++ commonConfigureFlags ++ commonConfigureFlags
++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding"; ++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding";

View file

@ -0,0 +1,21 @@
{stdenv, fetchurl}:
let version = "4.8"; in
stdenv.mkDerivation {
name = "nspr-${version}";
src = fetchurl {
url = "http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${version}/src/nspr-${version}.tar.gz";
sha256 = "1znvc7fb4f6318kbn1w86p134r4cslij25sg7kcspfx746m89pm2";
};
preConfigure = "cd mozilla/nsprpub";
configureFlags = "--enable-optimize --disable-debug";
meta = {
homepage = http://www.mozilla.org/projects/nspr/;
description = "Netscape Portable Runtime, a platform-neutral API for system-level and libc-like functions";
};
}

View file

@ -3886,6 +3886,10 @@ let
inherit fetchurl stdenv; inherit fetchurl stdenv;
}; };
nspr = import ../development/libraries/nspr {
inherit fetchurl stdenv;
};
nss = import ../development/libraries/nss { nss = import ../development/libraries/nss {
inherit fetchurl stdenv perl zip; inherit fetchurl stdenv perl zip;
}; };
@ -6291,7 +6295,8 @@ let
firefox35Pkgs = lowPrio (import ../applications/networking/browsers/firefox/3.5.nix { firefox35Pkgs = lowPrio (import ../applications/networking/browsers/firefox/3.5.nix {
inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo
python dbus dbus_glib freetype fontconfig bzip2 xlibs file alsaLib; python dbus dbus_glib freetype fontconfig bzip2 xlibs file alsaLib
nspr;
inherit (gtkLibs) gtk pango; inherit (gtkLibs) gtk pango;
inherit (gnome) libIDL; inherit (gnome) libIDL;
}); });