14 , withVlc ? false, vlc
15 , withIina ? false, iina
16 , chromecastSupport ? false
20 assert withMpv || withVlc || withIina;
22 stdenvNoCC.mkDerivation rec {
26 src = fetchFromGitHub {
30 hash = "sha256-7zuepWTtrFp9RW3zTSjPzyJ9e+09PdKgwcnV+DqPEUY=";
33 nativeBuildInputs = [ makeWrapper ];
36 ++ lib.optional withMpv mpv
37 ++ lib.optional withVlc vlc
38 ++ lib.optional withIina iina;
39 in [ gnugrep gnused curl fzf ffmpeg aria2 ]
41 ++ lib.optional chromecastSupport catt
42 ++ lib.optional syncSupport syncplay;
47 install -Dm755 ani-cli $out/bin/ani-cli
49 wrapProgram $out/bin/ani-cli \
50 --prefix PATH : ${lib.makeBinPath runtimeDependencies}
56 homepage = "https://github.com/pystardust/ani-cli";
57 description = "Cli tool to browse and play anime";
58 license = licenses.gpl3Plus;
59 maintainers = with maintainers; [ skykanin ];
60 platforms = platforms.unix;
61 mainProgram = "ani-cli";