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:   patches = lib.optional debugBuild ./fix-debug.patch;
  
    buildInputs =
      [ pkgconfig gtk2 perl zip libIDL libjpeg zlib bzip2
        python dbus dbus_glib pango freetype fontconfig xorg.libXi
        xorg.libX11 xorg.libXrender xorg.libXft xorg.libXt file
        alsaLib nspr nss libnotify xorg.pixman yasm mesa
        xorg.libXScrnSaver xorg.scrnsaverproto
        xorg.libXext xorg.xextproto sqlite unzip makeWrapper
        hunspell libevent libstartup_notification libvpx /* cairo */
        icu libpng jemalloc
        libpulseaudio # only headers are needed
  
negative.code:       patchelf --set-rpath "${lib.getLib libnotify
          }/lib:$(patchelf --print-rpath "$out"/lib/firefox-*/libxul.so)" \
            "$out"/lib/firefox-*/libxul.so
      '';
  
    doInstallCheck = true;
    installCheckPhase =
      ''
        # Some basic testing
        "$out/bin/firefox" --version
      '';
  
    meta = {
  