bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
44 lines
884 B
Nix
44 lines
884 B
Nix
{ fetchFromGitHub
|
|
, makeWrapper
|
|
, stdenvNoCC
|
|
, lib
|
|
, gnugrep
|
|
, gnused
|
|
, curl
|
|
, openssl
|
|
, mpv
|
|
, aria2
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "ani-cli";
|
|
version = "2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pystardust";
|
|
repo = "ani-cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-cDxb/IcpzR5akWnA8RN+fKQn0+QnpBV8tAbUjjPICsA=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|