From 8cf10c315a2afb55f6bafd652aaac6f25bb92c08 Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Mon, 4 Aug 2025 18:31:25 +0300 Subject: [PATCH] rewind-ai: drop Ref: https://github.com/Homebrew/homebrew-cask/pull/196859 --- pkgs/by-name/re/rewind-ai/package.nix | 82 --------------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 82 deletions(-) delete mode 100644 pkgs/by-name/re/rewind-ai/package.nix diff --git a/pkgs/by-name/re/rewind-ai/package.nix b/pkgs/by-name/re/rewind-ai/package.nix deleted file mode 100644 index bc356f71bdac..000000000000 --- a/pkgs/by-name/re/rewind-ai/package.nix +++ /dev/null @@ -1,82 +0,0 @@ -{ - lib, - stdenvNoCC, - fetchzip, - writeShellApplication, - curl, - gawk, - xmlstarlet, - common-updater-scripts, -}: - -stdenvNoCC.mkDerivation (finalAttrs: { - pname = "rewind-ai"; - # Example version with explanation - # 1.5284 (Base version) - # 15284.1 (build number) - # dcd0176 (commit hash) - # 20240504 (pub date) - version = "1.5310-15310.1-5f6bcc5-20240930"; - - src = fetchzip { - url = - let - buildNumber = lib.elemAt (lib.splitString "-" finalAttrs.version) 1; - commitHash = lib.elemAt (lib.splitString "-" finalAttrs.version) 2; - in - "https://updates.rewind.ai/builds/main/b${buildNumber}-main-${commitHash}.zip"; - hash = "sha256-uNqblEOezCj1JanDl6MZZO3GLX5jgWh19VeMcmwZvZg="; - }; - - installPhase = '' - runHook preInstall - - mkdir -p "$out/Applications/Rewind.app" - cp -R . "$out/Applications/Rewind.app" - - runHook postInstall - ''; - - # Example response to use when modifying the script: https://pastebin.com/raw/90qU3n6H - # There is a real harsh limit on update checks, so DO NOT send any unnecessary update checks - # Wait at least 3 days since the last pub_date (you will find the date at the end of the version number) - # Example: 20240504 would be 2024/05/04, and that would mean that we want to check no earlier than on 2024/05/07 for any updates - passthru.updateScript = lib.getExe (writeShellApplication { - name = "${finalAttrs.pname}-update-script"; - runtimeInputs = [ - curl - gawk - xmlstarlet - common-updater-scripts - ]; - text = '' - xml_get () { - echo "$update_xml" | xmlstarlet sel -t -v "$1" - } - - update_url="https://updates.rewind.ai/appcasts/main.xml" - - update_xml=$(curl -s "$update_url") - - version_base=$(xml_get "/rss/channel/item/sparkle:shortVersionString") - url=$(xml_get "/rss/channel/item/enclosure/@url") - pub_date=$(xml_get "/rss/channel/item/pubDate") - commit_id=$(echo "$url" | awk -F '-|\\.' '{ print $(NF - 1) }') - build_number=$(xml_get "/rss/channel/item/sparkle:version") - formatted_pub_date=$(date -d "$pub_date" +"%Y%m%d") - - full_version="''${version_base}-''${build_number}-''${commit_id}-''${formatted_pub_date}" - update-source-version "rewind-ai" "$full_version" --version-key=version --file=./pkgs/by-name/re/rewind-ai/package.nix --print-changes - ''; - }); - - meta = { - changelog = "https://www.rewind.ai/changelog"; - description = "Rewind is a personalized AI powered by everything you've seen, said, or heard"; - homepage = "https://www.rewind.ai/"; - license = lib.licenses.unfree; - maintainers = with lib.maintainers; [ donteatoreo ]; - platforms = [ "aarch64-darwin" ]; - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; - }; -}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 81a3a25adaf6..ab98e192fe04 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1762,6 +1762,7 @@ mapAliases { retroarchBare = retroarch-bare; # Added 2024-11-23 retroarchFull = retroarch-full; # Added 2024-11-23 retroshare06 = retroshare; + rewind-ai = throw "'rewind-ai' has been removed due to lack of of maintenance upstream"; # Added 2025-08-03 responsively-app = throw "'responsively-app' has been removed due to lack of maintainance upstream."; # Added 2025-06-25 rftg = throw "'rftg' has been removed due to lack of maintenance upstream."; # Added 2024-12-04 rigsofrods = rigsofrods-bin; # Added 2023-03-22