diff --git a/pkgs/by-name/sp/sparkle/package.nix b/pkgs/by-name/sp/sparkle/package.nix deleted file mode 100644 index 8af81c16c516..000000000000 --- a/pkgs/by-name/sp/sparkle/package.nix +++ /dev/null @@ -1,111 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - autoPatchelfHook, - dpkg, - alsa-lib, - at-spi2-atk, - cairo, - cups, - dbus, - expat, - glib, - gtk3, - libGL, - libgbm, - libxkbcommon, - musl, - nspr, - nss, - pango, - udev, - xorg, -}: - -stdenv.mkDerivation (finalAttrs: { - pname = "sparkle"; - version = "1.6.15"; - - src = - let - selectSystem = - attrs: - attrs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); - arch = selectSystem { - x86_64-linux = "amd64"; - aarch64-linux = "arm64"; - }; - in - fetchurl { - url = "https://github.com/xishang0128/sparkle/releases/download/${finalAttrs.version}/sparkle-linux-${finalAttrs.version}-${arch}.deb"; - hash = selectSystem { - x86_64-linux = "sha256-6WGMFmsUr/17lxZd+Q2Ellgs8ftn2YRb/lwmSR7uqLE="; - aarch64-linux = "sha256-lo19xwSqNgTxBxZuNIV7cq2qE93xtbxnsn7K3vROmrc="; - }; - }; - - nativeBuildInputs = [ - autoPatchelfHook - dpkg - ]; - - buildInputs = [ - alsa-lib - at-spi2-atk - cairo - cups - dbus - expat - glib - gtk3 - libGL - libgbm - libxkbcommon - musl - nspr - nss - pango - udev - xorg.libX11 - xorg.libXcomposite - xorg.libXdamage - xorg.libXext - xorg.libXfixes - xorg.libXrandr - xorg.libxcb - (lib.getLib stdenv.cc.cc) - ]; - - installPhase = '' - runHook preInstall - - mkdir -p $out/bin - cp -r opt $out/opt - substituteInPlace usr/share/applications/sparkle.desktop \ - --replace-fail "/opt/sparkle/sparkle" "sparkle" - cp -r usr/share $out/share - ln -s $out/opt/sparkle/sparkle $out/bin/sparkle - - runHook postInstall - ''; - - preFixup = '' - patchelf --add-needed libGL.so.1 $out/opt/sparkle/sparkle - ''; - - passthru.updateScript = ./update.sh; - - meta = { - description = "Another Mihomo GUI"; - homepage = "https://github.com/xishang0128/sparkle"; - license = lib.licenses.gpl3Plus; - mainProgram = "sparkle"; - maintainers = [ ]; - platforms = [ - "aarch64-linux" - "x86_64-linux" - ]; - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; - }; -}) diff --git a/pkgs/by-name/sp/sparkle/update.sh b/pkgs/by-name/sp/sparkle/update.sh deleted file mode 100755 index c7e559d34660..000000000000 --- a/pkgs/by-name/sp/sparkle/update.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p bash nix curl coreutils common-updater-scripts nix-update jq - -currentVersion=$(nix-instantiate --eval -E "with import ./. {}; sparkle.version or (lib.getVersion sparkle)" | tr -d '"') -latestVersion=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sL https://api.github.com/repos/xishang0128/sparkle/releases/latest | jq --raw-output .tag_name) - -echo "latest version: $latestVersion" -echo "current version: $currentVersion" - -if [[ "$latestVersion" == "$currentVersion" ]]; then - echo "package is up-to-date" - exit 0 -fi - -nix-update sparkle --version $latestVersion --system x86_64-linux -hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(nix-prefetch-url $(nix-instantiate --eval -E "with import ./. {}; sparkle.src.url" --system aarch64-linux | tr -d '"'))) -update-source-version sparkle $latestVersion $hash --system=aarch64-linux --ignore-same-version diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 3dbf40cc5018..92877308c287 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1532,6 +1532,7 @@ mapAliases { SPAdes = throw "'SPAdes' has been renamed to/replaced by 'spades'"; # Converted to throw 2025-10-27 spago = spago-legacy; # Added 2025-09-23, pkgs.spago should become spago@next which hasn't been packaged yet spark2014 = throw "'spark2014' has been renamed to/replaced by 'gnatprove'"; # Converted to throw 2025-10-27 + sparkle = throw "'sparkle' has been removed because upstream repository source code has been deleted"; # Added 2025-12-29 spidermonkey_91 = throw "'spidermonkey_91 is EOL since 2022/09"; # Added 2025-08-26 spoof = throw "'spoof' has been removed, as it is broken with the latest MacOS versions and is unmaintained upstream"; # Added 2025-11-14 spotify-unwrapped = throw "'spotify-unwrapped' has been renamed to/replaced by 'spotify'"; # Converted to throw 2025-10-27