@@ -1,81 +0,0 @@
1−{ lib, stdenv, fetchurl, pkgconfig, gtk, pango, perl, python, zip, libIDL
2−, libjpeg, zlib, dbus, dbus_glib, bzip2, xorg
3−, freetype, fontconfig, file, alsaLib, nspr, nss, libnotify
4−, yasm, mesa, sqlite, unzip, makeWrapper, pysqlite
5−, hunspell, libevent, libstartup_notification, libvpx
6−, cairo, gstreamer, gst_plugins_base, icu, firefox-unwrapped
7−, debugBuild ? false
8−}:
9−
10−assert stdenv.cc ? libc && stdenv.cc.libc != null;
11−
12−let version = firefox-unwrapped.version; in
13−
14−stdenv.mkDerivation rec {
15− name = "xulrunner-${version}";
16−
17− src = firefox-unwrapped.src;
18−
19− buildInputs =
20− [ pkgconfig gtk perl zip libIDL libjpeg zlib bzip2
21− python dbus dbus_glib pango freetype fontconfig xorg.libXi
22− xorg.libX11 xorg.libXrender xorg.libXft xorg.libXt file
23− alsaLib nspr nss libnotify xorg.pixman yasm mesa
24− xorg.libXScrnSaver xorg.scrnsaverproto pysqlite
25− xorg.libXext xorg.xextproto sqlite unzip makeWrapper
26− hunspell libevent libstartup_notification libvpx cairo
27− gstreamer gst_plugins_base icu
28− ];
29−
30− configureFlags =
31− [ "--enable-application=xulrunner"
32− "--disable-javaxpcom"
33− "--with-system-jpeg"
34− "--with-system-zlib"
35− "--with-system-bz2"
36− "--with-system-nspr"
37− "--with-system-nss"
38− "--with-system-libevent"
39− "--with-system-libvpx"
40− # "--with-system-png" # needs APNG support
41− # "--with-system-icu" # causes ‘ar: invalid option -- 'L'’ in Firefox 28.0
42− "--enable-system-ffi"
43− "--enable-system-hunspell"
44− "--enable-system-pixman"
45− "--enable-system-sqlite"
46− "--enable-system-cairo"
47− "--enable-gstreamer"
48− "--enable-startup-notification"
49− # "--enable-content-sandbox" # available since 26.0, but not much info available
50− # "--enable-content-sandbox-reporter" # keeping disabled for now
51− "--disable-crashreporter"
52− "--disable-tests"
53− "--disable-necko-wifi" # maybe we want to enable this at some point
54− "--disable-installer"
55− "--disable-updater"
56− "--disable-pulseaudio"
57− "--disable-gconf"
58− ]
59− ++ (if debugBuild
60− then [ "--enable-debug" "--enable-profiling"]
61− else [ "--disable-debug" "--enable-release" "--enable-strip"
62− "--enable-optimize${lib.optionalString (stdenv.system == "i686-linux") "=-O1"}" ]);
63−
64− enableParallelBuilding = true;
65−
66− preConfigure =
67− ''
68− configureScript=$(pwd)/configure
69− mkdir ../objdir
70− cd ../objdir
71− '';
72−
73− meta = {
74− description = "Mozilla Firefox XUL runner";
75− homepage = http://www.mozilla.com/en-US/firefox/;
76− maintainers = [ lib.maintainers.eelco ];
77− platforms = lib.platforms.linux;
78− };
79−
80− passthru = { inherit gtk version; };
81−}