Merge pull request #163384 from skykanin/ani-cli

This commit is contained in:
Sandro 2022-03-27 20:13:43 +02:00 committed by GitHub
commit ebfdd4d145
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ fetchFromGitHub
, makeWrapper
, stdenvNoCC
, lib
, gnugrep
, gnused
, curl
, openssl
, mpv
, aria2
}:
stdenvNoCC.mkDerivation rec {
pname = "ani-cli";
version = "1.9";
src = fetchFromGitHub {
owner = "pystardust";
repo = "ani-cli";
rev = "v${version}";
sha256 = "sha256-oYiq3Mnuhba5NELJXqVN3gY/d0RfQIqW13YtdcmYKK4=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 ani-cli $out/bin/ani-cli
wrapProgram $out/bin/ani-cli \
--prefix PATH : ${lib.makeBinPath [ gnugrep gnused curl openssl mpv aria2 ]}
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/pystardust/ani-cli";
description = "A cli tool to browse and play anime";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ skykanin ];
platforms = platforms.unix;
};
}

View file

@ -195,6 +195,8 @@ with pkgs;
ankisyncd = callPackage ../servers/ankisyncd { };
ani-cli = callPackage ../applications/video/ani-cli { };
aocd = with python3Packages; toPythonApplication aocd;
astrolog = callPackage ../applications/science/astronomy/astrolog { };