animeko: drop (#435204)

This commit is contained in:
Weijia Wang
2025-08-22 10:26:44 +02:00
committed by GitHub
3 changed files with 1 additions and 3959 deletions
-3700
View File
File diff suppressed because it is too large Load Diff
-259
View File
@@ -1,259 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
gradle,
jetbrains,
autoPatchelfHook,
fontconfig,
libXinerama,
libXrandr,
file,
gtk3,
glib,
cups,
lcms2,
alsa-lib,
libGL,
libvlc,
libidn,
pulseaudio,
ffmpeg,
libva,
libdvbpsi,
libogg,
chromaprint,
protobuf_21,
libgcrypt,
libdvdnav,
libsecret,
aribb24,
libavc1394,
libmpcdec,
libvorbis,
libebml,
faad2,
libjpeg8,
libkate,
librsvg,
xorg,
libsForQt5,
libupnp,
aalib,
libcaca,
libmatroska,
libopenmpt-modplug,
libsidplayfp,
shine,
libarchive,
gnupg,
srt,
libshout,
ffmpeg_6,
libmpeg2,
xcbutilkeysyms,
lirc,
lua5_2,
taglib,
libspatialaudio,
libmtp,
speexdsp,
libsamplerate,
sox,
libmad,
libnotify,
taglib_1,
zvbi,
libdc1394,
libcddb,
libbluray,
libdvdread,
libvncserver,
twolame,
samba,
libnfs,
flac,
writeShellScript,
nix-update,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "animeko";
version = "4.11.1";
src = fetchFromGitHub {
owner = "open-ani";
repo = "animeko";
tag = "v${finalAttrs.version}";
hash = "sha256-JLOwWJvBfwqvAfaFn5qr8lsHL7/u97qYjZsckBjAu6I=";
fetchSubmodules = true;
};
# copy currentAniBuildConfig from upstream release asset to local.properties
postPatch = ''
echo "jvm.toolchain.version=21" >> local.properties
echo "ani.dandanplay.app.id=2qkvdr35cy" >> local.properties
echo "ani.dandanplay.app.secret=WspqhGkCD4DQbIUiXTPprrGmpn3YHFeX" >> local.properties
echo "ani.sentry.dsn=https://e548a2f9a8d7dbf1785da0b1a90e1595@o4508788947615744.ingest.us.sentry.io/4508788953448448" >> local.properties
echo "ani.analytics.server=https://us.i.posthog.com" >> local.properties
echo "ani.analytics.key=phc_7uXkMsKVXfFP9ERNbTT5lAHjVLYAskiRiakjxLROrHw" >> local.properties
echo "kotlin.native.ignoreDisabledTargets=true" >> local.properties
sed -i "s/^version.name=.*/version.name=${finalAttrs.version}/" gradle.properties
sed -i "s/^package.version=.*/package.version=${finalAttrs.version}/" gradle.properties
substituteInPlace gradle/libs.versions.toml \
--replace-fail 'antlr-kotlin = "1.0.2"' 'antlr-kotlin = "1.0.3"'
'';
gradleBuildTask = "createReleaseDistributable";
gradleUpdateTask = finalAttrs.gradleBuildTask;
mitmCache = gradle.fetchDeps {
inherit (finalAttrs) pname;
data = ./deps.json;
silent = false;
useBwrap = false;
};
env.JAVA_HOME = jetbrains.jdk;
gradleFlags = [ "-Dorg.gradle.java.home=${jetbrains.jdk}" ];
nativeBuildInputs = [
gradle
autoPatchelfHook
];
buildInputs = [
fontconfig
libXinerama
libXrandr
file
shine
libmpeg2
gtk3
glib
cups
lcms2
alsa-lib
libidn
pulseaudio
ffmpeg
faad2
libjpeg8
libkate
librsvg
xorg.libXpm
libsForQt5.qt5.qtsvg
libsForQt5.qt5.qtbase
libsForQt5.qt5.qtx11extras
libupnp
aalib
libcaca
libva
libdvbpsi
libogg
chromaprint
protobuf_21
libgcrypt
libsecret
aribb24
twolame
libmpcdec
libvorbis
libebml
libmatroska
libopenmpt-modplug
libavc1394
libmtp
libsidplayfp
libarchive
gnupg
srt
libshout
ffmpeg_6
xcbutilkeysyms
lirc
lua5_2
taglib
libspatialaudio
speexdsp
libsamplerate
sox
libmad
libnotify
zvbi
libdc1394
libcddb
libbluray
libdvdread
libvncserver
samba
libnfs
taglib_1
libdvdnav
flac
];
autoPatchelfIgnoreMissingDeps = [
"libmpcdec.so.6"
"libsidplay2.so.1"
"libresid-builder.so.0"
"libsrt-gnutls.so.1.5"
"liblua5.2.so.0"
"libspatialaudio.so.0"
"libdc1394.so.25"
"libx265.so.199"
"libdca.so.0"
"liba52-0.7.4.so"
"libFLAC.so.12"
"libtheoradec.so.1"
"libtheoraenc.so.1"
"libxml2.so.2"
];
dontWrapQtApps = true;
doCheck = false;
installPhase = ''
runHook preInstall
cp -r app/desktop/build/compose/binaries/main-release/app/Ani $out
chmod +x $out/lib/runtime/lib/jcef_helper
substituteInPlace app/desktop/appResources/linux-x64/animeko.desktop \
--replace-fail "icon" "animeko"
install -Dm644 app/desktop/appResources/linux-x64/animeko.desktop $out/share/applications/animeko.desktop
install -Dm644 app/desktop/appResources/linux-x64/icon.png $out/share/pixmaps/animeko.png
runHook postInstall
'';
preFixup = ''
patchelf --add-needed libGL.so.1 \
--add-rpath ${
lib.makeLibraryPath [
libGL
libvlc
]
} $out/bin/Ani
'';
passthru.updateScript = writeShellScript "update-animeko" ''
${lib.getExe nix-update} animeko
$(nix-build -A animeko.mitmCache.updateScript)
'';
meta = {
description = "One-stop platform for finding, following and watching anime";
homepage = "https://github.com/open-ani/animeko";
mainProgram = "Ani";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ ];
sourceProvenance = with lib.sourceTypes; [
fromSource
binaryBytecode
];
platforms = [ "x86_64-linux" ];
};
})
+1
View File
@@ -432,6 +432,7 @@ mapAliases {
alsaUtils = throw "'alsaUtils' has been renamed to/replaced by 'alsa-utils'"; # Converted to throw 2024-10-17
amazon-qldb-shell = throw "'amazon-qldb-shell' has been removed due to being unmaintained upstream"; # Added 2025-07-30
angelfish = throw "'angelfish' has been renamed to/replaced by 'libsForQt5.kdeGear.angelfish'"; # Converted to throw 2024-10-17
animeko = throw "'animeko' has been removed since it is unmaintained"; # Added 2025-08-20
ansible_2_14 = throw "Ansible 2.14 goes end of life in 2024/05 and can't be supported throughout the 24.05 release cycle"; # Added 2024-04-11
ansible_2_15 = throw "Ansible 2.15 goes end of life in 2024/11 and can't be supported throughout the 24.11 release cycle"; # Added 2024-11-08
antennas = throw "antennas has been removed as it only works with tvheadend, which nobody was willing to maintain and was stuck on an unmaintained version that required FFmpeg 4; please see https://github.com/NixOS/nixpkgs/pull/332259 if you are interested in maintaining a newer version"; # Added 2024-08-21