anchor.diff: -{ stdenv
  -, lib
  -, fetchzip
  -, writeScript
  +{ lib
  +, stdenv
   , alsa-lib
   , autoconf213
   , cairo
  -, desktop-file-utils
   , dbus
   , dbus-glib
  +, desktop-file-utils
  +, fetchzip
   , ffmpeg
   , fontconfig
   , freetype
   , gnome2
   , gnum4
  -, gtk2
  -, libevent
   , libGL
   , libGLU
  +, libevent
   , libnotify
   , libpulseaudio
   , libstartup_notification
  +, pango
   , perl
   , pkg-config
   , python2
   , unzip
   , which
   , wrapGAppsHook
  +, writeScript
   , xorg
   , yasm
   , zip
   , zlib
  -, withGTK3 ? true
  -, gtk3
  +, withGTK3 ? true, gtk3, gtk2
   }:
   
   # Only specific GCC versions are supported with branding
  
positive.code:   && versionOlder stdenv.cc.version "11"
  );
  
  let
    libPath = lib.makeLibraryPath [
      ffmpeg
      libpulseaudio
    ];
    gtkVersion = if withGTK3 then "3" else "2";
  in
  stdenv.mkDerivation rec {
    pname = "palemoon";
    version = "29.4.1";
  
    src = fetchzip {
      url = "http://archive.palemoon.org/source/palemoon-${version}-source.tar.xz";
      stripRoot = false;
      sha256 = "0kb9yn1q8rrmnlsyvxvv2gdgyyf12g6rxlyh82lmc0gysvd4qd2c";
    };
  
    passthru.updateScript = writeScript "update-${pname}" ''
      #!/usr/bin/env nix-shell
      #!nix-shell -i bash -p common-updater-scripts curl libxml2
  
      set -eu -o pipefail
  
      # Only release note announcement == finalized release
      version="$(
        curl -s 'http://www.palemoon.org/releasenotes.shtml' |
        xmllint --html --xpath 'html/body/table/tbody/tr/td/h3/text()' - 2>/dev/null | head -n1 |
        sed 's/v\(\S*\).*/\1/'
      )"
      update-source-version ${pname} "$version"
    '';
  
    nativeBuildInputs = [
      autoconf213
  
negative.code: 
    dontWrapGApps = true;
  
    preFixup =
      let
        libPath = lib.makeLibraryPath [
          ffmpeg
          libpulseaudio
        ];
      in
        ''
          gappsWrapperArgs+=(
            --prefix LD_LIBRARY_PATH : "${libPath}"
          )
      wrapGApp $out/lib/palemoon-${version}/palemoon
    '';
  
    meta = with lib; {
      homepage = "https://www.palemoon.org/";
      description = "An Open Source, Goanna-based web browser focusing on efficiency and customization";
      longDescription = ''
        Pale Moon is an Open Source, Goanna-based web browser focusing on
  