[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/13: gnu: Add ani-cli.
From: |
guix-commits |
Subject: |
03/13: gnu: Add ani-cli. |
Date: |
Sun, 26 Nov 2023 18:19:24 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit ceb5b5a5f363dbf0a138753b2273ebcebf525213
Author: jaeme <jaeme@runbox.com>
AuthorDate: Thu Oct 26 19:48:51 2023 -0400
gnu: Add ani-cli.
* gnu/packages/video.scm (ani-cli): New variable.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
Change-Id: I21ea258f164285dea0d46379dff120b105803dd0
---
gnu/packages/video.scm | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index e9b2a17851..2822cdf4bf 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -117,6 +117,7 @@
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages bison)
+ #:use-module (gnu packages bittorrent)
#:use-module (gnu packages boost)
#:use-module (gnu packages cdrom)
#:use-module (gnu packages check)
@@ -196,6 +197,7 @@
#:use-module (gnu packages sqlite)
#:use-module (gnu packages ssh)
#:use-module (gnu packages swig)
+ #:use-module (gnu packages terminals)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages textutils)
#:use-module (gnu packages tls)
@@ -211,6 +213,78 @@
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg))
+(define-public ani-cli
+ (package
+ (name "ani-cli")
+ (version "4.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pystardust/ani-cli")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ni9pzjb5qh87iz7c8252bx79qadr1qx6jnkqvvjcqrchh7q473a"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:tests? #f ;no test suite
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure) ;nothing to configure
+ (delete 'build) ;nothing to build
+ (replace 'install
+ (lambda _
+ (install-file "ani-cli" (string-append #$output "/bin"))
+ (install-file "ani-cli.1"
+ (string-append #$output "/share/man/man1"))))
+ (add-after 'install 'wrap
+ (lambda* (#:key inputs #:allow-other-keys)
+ (define (bin command)
+ (dirname (search-input-file
+ inputs (string-append "bin/" command))))
+ (wrap-program (string-append #$output "/bin/ani-cli")
+ `("PATH" ":" prefix
+ ,(map bin (list "aria2c"
+ "curl"
+ "ffmpeg"
+ "fzf"
+ "grep"
+ "mpv"
+ "sed"
+ "tput"
+ "uname"
+ "yt-dlp")))))))))
+ (inputs (list aria2
+ bash-minimal
+ coreutils
+ curl
+ ffmpeg
+ fzf
+ grep
+ mpv
+ ncurses
+ sed
+ yt-dlp))
+ (native-search-paths
+ ;; This was copied from the curl package.
+ (list (search-path-specification
+ (variable "CURL_CA_BUNDLE")
+ (file-type 'regular)
+ (separator #f) ;single entry
+ (files '("etc/ssl/certs/ca-certificates.crt")))))
+ (home-page "https://github.com/pystardust/ani-cli")
+ (synopsis "Browse and watch anime from the command line")
+ (description
+ "ani-cli is a @acronym{CLI, command-line interface} to browse and watch
+anime by streaming videos from @uref{https://allanime.to,All Anime}.
+
+There are different features such as episode browsing, history tracking,
+streaming at multiple resolutions, and much more, depending on what programs
the
+user has installed.")
+ (license license:gpl3+)))
+
(define-public transcode
(package
(name "transcode")
- branch master updated (f3173bb901 -> 3778f778c3), guix-commits, 2023/11/26
- 03/13: gnu: Add ani-cli.,
guix-commits <=
- 01/13: gnu: loksh: Update to 7.4., guix-commits, 2023/11/26
- 04/13: gnu: opensmtpd: Update to 7.4.0p1., guix-commits, 2023/11/26
- 06/13: gnu: dpkg: Update to 1.22.1., guix-commits, 2023/11/26
- 02/13: gnu: openssh: Update to 9.5p1., guix-commits, 2023/11/26
- 05/13: gnu: erofs-utils: Update to 1.7.1., guix-commits, 2023/11/26
- 08/13: gnu: knot: Update to 3.3.2., guix-commits, 2023/11/26
- 13/13: gnu: fio: Update to 3.36., guix-commits, 2023/11/26
- 07/13: gnu: nwipe: Update to 0.35., guix-commits, 2023/11/26
- 09/13: gnu: Add libnsfb., guix-commits, 2023/11/26
- 11/13: gnu: bfs: Fix Texinfo typo., guix-commits, 2023/11/26