guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 2ac7a8dcac551f409056f5f99f78130b344d7f08
Author: Formbi <[email protected]>
AuthorDate: Wed May 28 14:53:31 2025 +0200
gnu: Add ytarchive.
* gnu/packages/video.scm (ytarchive): New variable.
Change-Id: If59da88d411f5c9b1a68b45689b537ffef644219
Modified-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/video.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index f8acd116d5..be5cc1ee61 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -70,6 +70,8 @@
;;; Copyright © 2023, 2024 Zheng Junjie <[email protected]>
;;; Copyright © 2024 Artyom V. Poptsov <[email protected]>
;;; Copyright © 2024 aurtzy <[email protected]>
+;;; Copyright © 2025 Formbi <[email protected]>
+;;; Copyright © 2025 Sharlatan Hellseher <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -154,6 +156,8 @@
#:use-module (gnu packages gnome)
#:use-module (gnu packages gnunet)
#:use-module (gnu packages gnupg)
+ #:use-module (gnu packages golang-build)
+ #:use-module (gnu packages golang-xyz)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
#:use-module (gnu packages haskell-xyz)
@@ -3341,6 +3345,51 @@ Both command-line and GTK2 interface are available.")
playlists.")
(license license:gpl3+)))
+(define-public ytarchive
+ (package
+ (name "ytarchive")
+ (version "0.5.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Kethsar/ytarchive")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1mx7w423rr6s4zvv65sbzl5rifj67rb0pzxjpi2y69l9p1vynmv3"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:install-source? #f
+ #:import-path "github.com/Kethsar/ytarchive"
+ #:embed-files #~(list "children" "nodes" "text")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'wrap
+ (lambda _
+ (wrap-program (string-append #$output "/bin/ytarchive")
+ `("PATH" ":" prefix
+ (,(string-append #$(this-package-input "ffmpeg")
+ "/bin/ffmpeg")))))))))
+ (native-inputs
+ (list go-github-com-alessio-shellescape
+ go-github-com-dannav-hhmmss
+ go-github-com-mattn-go-colorable
+ go-github-com-xhit-go-str2duration-v2
+ go-golang-org-x-net
+ go-golang-org-x-sys))
+ (inputs
+ (list ffmpeg))
+ (home-page "https://github.com/Kethsar/ytarchive")
+ (synopsis "Youtube livestream downloader")
+ (description
+ "Attempt to archive a given Youtube livestream from the start. This is
+most useful for streams that have already started and you want to download,
+but can also be used to wait for a scheduled stream and start downloading as
+soon as it starts.")
+ (license license:expat)))
+
(define-public libbluray
(package
(name "libbluray")