From 860683f7d9e1c055febcc9036f1ecd15ab893f7f Mon Sep 17 00:00:00 2001 From: Rishik Yalamanchili <73787402+Rishik-Y@users.noreply.github.com> Date: Wed, 18 Dec 2024 18:21:26 +0530 Subject: [PATCH] Update Ani-cli to latest version --- pkgs/applications/video/ani-cli/default.nix | 66 +++++++++------------ 1 file changed, 28 insertions(+), 38 deletions(-) diff --git a/pkgs/applications/video/ani-cli/default.nix b/pkgs/applications/video/ani-cli/default.nix index 6c38a3fffb920..b5d9fb11f5e07 100644 --- a/pkgs/applications/video/ani-cli/default.nix +++ b/pkgs/applications/video/ani-cli/default.nix @@ -1,55 +1,45 @@ -{ - fetchFromGitHub, - makeWrapper, - stdenvNoCC, - lib, - gnugrep, - gnused, - curl, - catt, - syncplay, - ffmpeg, - fzf, - aria2, - withMpv ? true, - mpv, - withVlc ? false, - vlc, - withIina ? false, - iina, - chromecastSupport ? false, - syncSupport ? false, +{ fetchFromGitHub +, makeWrapper +, stdenvNoCC +, lib +, gnugrep +, gnused +, curl +, catt +, syncplay +, ffmpeg +, fzf +, aria2 +, withMpv ? true, mpv +, withVlc ? false, vlc +, withIina ? false, iina +, chromecastSupport ? false +, syncSupport ? false }: assert withMpv || withVlc || withIina; stdenvNoCC.mkDerivation rec { pname = "ani-cli"; - version = "4.8"; + version = "4.9"; src = fetchFromGitHub { owner = "pystardust"; repo = "ani-cli"; rev = "v${version}"; - hash = "sha256-vntCiWaONndjU622c1BoCoASQxQf/i7yO0x+70OxzPU="; + hash = "sha256-7zuepWTtrFp9RW3zTSjPzyJ9e+09PdKgwcnV+DqPEUY="; }; nativeBuildInputs = [ makeWrapper ]; runtimeDependencies = - let - player = [ ] ++ lib.optional withMpv mpv ++ lib.optional withVlc vlc ++ lib.optional withIina iina; - in - [ - gnugrep - gnused - curl - fzf - ffmpeg - aria2 - ] - ++ player - ++ lib.optional chromecastSupport catt - ++ lib.optional syncSupport syncplay; + let player = [] + ++ lib.optional withMpv mpv + ++ lib.optional withVlc vlc + ++ lib.optional withIina iina; + in [ gnugrep gnused curl fzf ffmpeg aria2 ] + ++ player + ++ lib.optional chromecastSupport catt + ++ lib.optional syncSupport syncplay; installPhase = '' runHook preInstall @@ -64,7 +54,7 @@ stdenvNoCC.mkDerivation rec { meta = with lib; { homepage = "https://github.com/pystardust/ani-cli"; - description = "A cli tool to browse and play anime"; + description = "Cli tool to browse and play anime"; license = licenses.gpl3Plus; maintainers = with maintainers; [ skykanin ]; platforms = platforms.unix;