sparkle: drop (#474980)

This commit is contained in:
Aleksana
2026-01-01 09:27:42 +00:00
committed by GitHub
3 changed files with 1 additions and 128 deletions

View File

@@ -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 ];
};
})

View File

@@ -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

View File

@@ -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