nyxexprs/pkgs/applications/misc/ani-cli/default.nix

44 lines
913 B
Nix
Raw Permalink Normal View History

2023-11-03 07:25:58 +00:00
{
fetchFromGitHub,
makeWrapper,
stdenvNoCC,
lib,
gnugrep,
gnused,
wget,
fzf,
mpv,
aria2,
2023-11-03 09:27:04 +00:00
pins,
}: let
pin = pins.ani-cli;
in
stdenvNoCC.mkDerivation {
pname = "ani-cli";
inherit (pin) version;
2023-11-03 07:25:58 +00:00
2023-11-03 09:27:04 +00:00
src = fetchFromGitHub {
inherit (pin.repository) owner repo;
sha256 = pin.hash;
rev = pin.revision;
};
2023-11-03 07:25:58 +00:00
2023-11-03 09:27:04 +00:00
nativeBuildInputs = [makeWrapper];
2023-11-03 07:25:58 +00:00
2023-11-03 09:27:04 +00:00
installPhase = ''
runHook preInstall
install -Dm755 ani-cli $out/bin/ani-cli
wrapProgram $out/bin/ani-cli \
--prefix PATH : ${lib.makeBinPath [gnugrep gnused wget fzf mpv aria2]}
runHook postInstall
'';
2023-11-03 07:25:58 +00:00
2023-11-03 09:27:04 +00:00
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; [NotAShelf];
platforms = platforms.unix;
};
}