diff options
author | skykanin <3789764+skykanin@users.noreply.github.com> | 2022-03-10 21:05:08 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-03-27 15:38:49 +0200 |
commit | dae89279bb2164e943f8e3eb70f147840650e133 (patch) | |
tree | bf6073e8552d0ada10e6ddb547cf0c953430a91e /pkgs/applications/video/ani-cli | |
parent | b1df2f4796702eb34130b251c45b196cd1c1dd66 (diff) |
ani-cli: init at 1.9
Diffstat (limited to 'pkgs/applications/video/ani-cli')
-rw-r--r-- | pkgs/applications/video/ani-cli/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/video/ani-cli/default.nix b/pkgs/applications/video/ani-cli/default.nix new file mode 100644 index 0000000000000..6883587b4b810 --- /dev/null +++ b/pkgs/applications/video/ani-cli/default.nix @@ -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; + }; +} |