git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "xulrunner: Remove"

This reverts commit 8c3e9ea53e40e9bc5033d9e81b9b6ef98a066e3e.

commit5041cae5b767573faf286abfe6b1c76db2873626 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateWed 7 Sep 2016, 15:17 (10 years ago) parentfb46df8
2 files changed+86
pkgs/development/interpreters/xulrunner/default.nix+81 pkgs/top-level/all-packages.nix+5
pkgs/development/interpreters/xulrunner/default.nixnew file+81
@@ -0,0 +1,81 @@
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+}
pkgs/top-level/all-packages.nix+5
@@ -6050,6 +6050,11 @@ in
60506050
60516051 wasm = callPackage ../development/interpreters/wasm { };
60526052
6053+ xulrunner = callPackage ../development/interpreters/xulrunner {
6054+ inherit (gnome) libIDL;
6055+ inherit (pythonPackages) pysqlite;
6056+ };
6057+
60536058
60546059 ### DEVELOPMENT / MISC
60556060