Unverified Commit 95866f70 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

arc-browser: drop (#439774)

parents d67f797c 9b485a00
Loading
Loading
Loading
Loading
+0 −66
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchurl,
  undmg,
  writeShellApplication,
  curl,
  common-updater-scripts,
  xmlstarlet,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "arc-browser";
  version = "1.109.0-67185";

  src = fetchurl {
    url = "https://releases.arc.net/release/Arc-${finalAttrs.version}.dmg";
    hash = "sha256-zVErRSKMd5xhIB5fyawBNEatenHnm+q7VLAE78PLkmY=";
  };

  nativeBuildInputs = [ undmg ];

  sourceRoot = "Arc.app";

  installPhase = ''
    runHook preInstall

    mkdir -p "$out/Applications/Arc.app"
    cp -R . "$out/Applications/Arc.app"

    runHook postInstall
  '';

  dontFixup = true;

  passthru.updateScript = lib.getExe (writeShellApplication {
    name = "arc-browser-update-script";
    runtimeInputs = [
      curl
      common-updater-scripts
      xmlstarlet
    ];
    text = ''
      latest_version_string="$(curl -s "https://releases.arc.net/updates.xml" | xmlstarlet sel -N sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" -t -v "//item[1]/sparkle:shortVersionString" -n)"
      version_part="''${latest_version_string%% (*}"
      build_part="''${latest_version_string##*\(}"
      build_part="''${build_part%\)*}"
      version="''${version_part}-''${build_part}"

      update-source-version arc-browser "$version"
    '';
  });

  meta = {
    description = "Arc from The Browser Company";
    homepage = "https://arc.net/";
    license = lib.licenses.unfree;
    maintainers = with lib.maintainers; [ ];
    knownVulnerabilities = [ "unmaintained" ];
    platforms = [
      "aarch64-darwin"
      "x86_64-darwin"
    ];
    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
  };
})
+1 −0
Original line number Diff line number Diff line
@@ -461,6 +461,7 @@ mapAliases {
  appthreat-depscan = dep-scan; # Added 2024-04-10
  arangodb = throw "arangodb has been removed, as it was unmaintained and the packaged version does not build with supported GCC versions"; # Added 2025-08-12
  arb = throw "'arb' has been removed as it has been merged into 'flint3'"; # Added 2025-03-28
  arc-browser = throw "arc-browser was removed due to being unmaintained"; # Added 2025-09-03
  arcanist = throw "arcanist was removed as phabricator is not supported and does not accept fixes"; # Added 2024-06-07
  archipelago-minecraft = throw "archipelago-minecraft has been removed, as upstream no longer ships minecraft as a default APWorld."; # Added 2025-07-15
  archivebox = throw "archivebox has been removed, since the packaged version was stuck on django 3."; # Added 2025-08-01