anchor.diff:  , desktopName ? # browserName with first letter capitalized
     (lib.toUpper (lib.substring 0 1 browserName) + lib.substring 1 (-1) browserName)
   , nameSuffix ? ""
  -, icon ? browserName, libtrick ? true
  +, icon ? browserName
   }:
   
   let
  
positive.code:   gst-plugins = with gst_all; [ gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg ];
    gtk_modules = [ libcanberra_gtk2 ];
  
  in
  stdenv.mkDerivation {
    inherit name;
  
    desktopItem = makeDesktopItem {
      name = browserName;
      exec = browserName + " %U";
      inherit icon;
      comment = "";
      desktopName = desktopName;
      genericName = "Web Browser";
      categories = "Application;Network;WebBrowser;";
      mimeType = stdenv.lib.concatStringsSep ";" [
  
negative.code:         exit 1
      fi
  
      makeWrapper "$(readlink -v --canonicalize-existing "${browser}/bin/${browserName}")" \
          "$out/bin/${browserName}${nameSuffix}" \
          --suffix-each MOZ_PLUGIN_PATH ':' "$plugins" \
          --suffix LD_LIBRARY_PATH ':' "$libs" \
          --suffix-each GTK_PATH ':' "$gtk_modules" \
          --suffix-each LD_PRELOAD ':' "$(cat $(filterExisting $(addSuffix /extra-ld-preload $plugins)))" \
          --prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))" \
          --suffix PATH ':' "$out/bin" \
          --set MOZ_APP_LAUNCHER "${browserName}${nameSuffix}" \
          ${lib.optionalString (!ffmpegSupport) ''--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"''}
  
      if [ -e "${browser}/share/icons" ]; then
          mkdir -p "$out/share"
          ln -s "${browser}/share/icons" "$out/share/icons"
      else
          mkdir -p "$out/share/icons/hicolor/128x128/apps"
          ln -s "${browser}/lib/${browserName}-"*"/browser/icons/mozicon128.png" \
              "$out/share/icons/hicolor/128x128/apps/${browserName}.png"
      fi
  
      install -D -t $out/share/applications $desktopItem/share/applications/*
  
      # For manpages, in case the program supplies them
      mkdir -p $out/nix-support
  