anchor.diff: -{ lib, stdenv, fetchurl, pkgconfig, gtk2, gtk3, pango, perl, python, zip, libIDL
  +{ lib, stdenv, fetchurl, pkgconfig, gtk2, pango, perl, python, zip, libIDL
   , libjpeg, zlib, dbus, dbus_glib, bzip2, xorg
   , freetype, fontconfig, file, alsaLib, nspr, nss, libnotify
   , yasm, mesa, sqlite, unzip, makeWrapper
  
positive.code: 
        # Remove SDK cruft. FIXME: move to a separate output?
        rm -rf $out/share/idl $out/include $out/lib/firefox-devel-*
      '' + lib.optionalString enableGTK3
        # argv[0] must point to firefox itself
      ''
        wrapProgram "$out/bin/firefox" \
          --argv0 "$out/bin/.firefox-wrapped" \
          --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:" \
          --suffix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
      '' +
        # some basic testing
      ''
        "$out/bin/firefox" --version
      '';
  
    postFixup =
  
negative.code: , cairo, gstreamer, gst-plugins-base, icu, libpng, jemalloc, libpulseaudio
  , autoconf213, which
  , writeScript, xidel, common-updater-scripts, coreutils, gnused, gnugrep, curl
  , enableGTK3 ? false, gtk3, wrapGAppsHook
  , debugBuild ? false
  , # If you want the resulting program to call itself "Firefox" instead
    # of "Nightly" or whatever, enable this option.  However, those
    # binaries may not be distributed without permission from the
    # Mozilla Foundation, see
    # http://www.mozilla.org/foundation/trademarks/.
  