anchor.diff:      ./mach install
   
       # Fix missing icon due to wrong WMClass
  -    # TODO report upstream
  +    # https://forum.palemoon.org/viewtopic.php?f=3&t=26746&p=214221#p214221
       substituteInPlace ./palemoon/branding/official/palemoon.desktop \
         --replace 'StartupWMClass="pale moon"' 'StartupWMClass=Pale moon'
       desktop-file-install --dir=$out/share/applications \
  
positive.code: in
  stdenv.mkDerivation rec {
    pname = "palemoon";
    version = "29.2.0";
  
    src = fetchFromGitHub {
      githubBase = "repo.palemoon.org";
      owner = "MoonchildProductions";
      repo = "Pale-Moon";
      rev = "${version}_Release";
      sha256 = "0pa9j41bbfarwi60a6hxi5vpn52mwgr4p05l98acv4fcs1ccb427";
      fetchSubmodules = true;
    };
  
  
negative.code:     done
  
      # Remove unneeded SDK data from installation
      # https://forum.palemoon.org/viewtopic.php?f=37&t=26796&p=214676#p214729
      rm -rf $out/{include,share/idl,lib/palemoon-devel-${version}}
  
      runHook postInstall
  