anchor.diff:      # Fix notifications. LibXUL uses dlopen for this, unfortunately; see #18712.
       ''
         patchelf --set-rpath "${lib.getLib libnotify
  -        }/lib:$(patchelf --print-rpath "$out"/lib/thunderbird-*/libxul.so)" \
  -          "$out"/lib/thunderbird-*/libxul.so
  +        }/lib:$(patchelf --print-rpath "$out"/lib/thunderbird*/libxul.so)" \
  +          "$out"/lib/thunderbird*/libxul.so
       '';
   
     doInstallCheck = true;
  
positive.code:           name = "thunderbird";
            exec = "thunderbird %U";
            desktopName = "Thunderbird";
            icon = "$out/lib/thunderbird-${version}/chrome/icons/default/default256.png";
            genericName = "Mail Reader";
            categories = "Application;Network";
            mimeType = stdenv.lib.concatStringsSep ";" [
  
negative.code:   postInstall =
      ''
        # For grsecurity kernels
        paxmark m $out/lib/thunderbird/thunderbird
  
        # TODO: Move to a dev output?
        rm -rf $out/include $out/lib/thunderbird-devel-* $out/share/idl
  
        # $binary is a symlink to $target.
        # We wrap $target by replacing the $binary symlink.
        local target="$out/lib/thunderbird/thunderbird"
        local binary="$out/bin/thunderbird"
  
        # Wrap correctly, this is needed to
  