nixpkgs/pkgs/applications/video/ani-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
874 B
Nix
Raw Normal View History

2022-03-10 21:05:08 +01:00
{ fetchFromGitHub
, makeWrapper
, stdenvNoCC
, lib
, gnugrep
, gnused
2023-01-30 22:20:28 +01:00
, wget
, fzf
2022-03-10 21:05:08 +01:00
, mpv
, aria2
}:
stdenvNoCC.mkDerivation rec {
pname = "ani-cli";
2023-03-15 11:45:44 +01:00
version = "4.2";
2022-03-10 21:05:08 +01:00
src = fetchFromGitHub {
owner = "pystardust";
repo = "ani-cli";
rev = "v${version}";
2023-03-15 11:45:44 +01:00
hash = "sha256-XXD55sxgKg8qSdXV7mbnSCQJ4fNgWFG5IiR1QTjDkHI=";
2022-03-10 21:05:08 +01:00
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 ani-cli $out/bin/ani-cli
wrapProgram $out/bin/ani-cli \
2023-01-30 22:20:28 +01:00
--prefix PATH : ${lib.makeBinPath [ gnugrep gnused wget fzf mpv aria2 ]}
2022-03-10 21:05:08 +01:00
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;
};
}