Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ani-cli v4.6 -> v4.8 (For NixOS 23.11) #366169

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 37 additions & 27 deletions pkgs/applications/video/ani-cli/default.nix
Original file line number Diff line number Diff line change
@@ -1,45 +1,55 @@
{ 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.6";
version = "4.8";

src = fetchFromGitHub {
owner = "pystardust";
repo = "ani-cli";
rev = "v${version}";
hash = "sha256-ahyCD4QsYyb3xtNK03HITeF0+hJFIHZ+PAjisuS/Kdo=";
hash = "sha256-vntCiWaONndjU622c1BoCoASQxQf/i7yO0x+70OxzPU=";
};

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
Expand Down
Loading