unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Raghav Gururajan via Guix-patches via <guix-patches@gnu.org>
To: 49210@debbugs.gnu.org
Cc: Raghav Gururajan <rg@raghavgururajan.name>
Subject: [bug#49210] [PATCH v3 15/16] gnu: Add pipe-viewer.
Date: Tue, 29 Jun 2021 23:17:52 -0400	[thread overview]
Message-ID: <20210630031753.14653-15-rg@raghavgururajan.name> (raw)
In-Reply-To: <20210630031753.14653-1-rg@raghavgururajan.name>

* gnu/packages/video.scm (pipe-viewer): New variable.
---
 gnu/packages/video.scm | 108 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index fbc468eab7..599d984b1b 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -178,6 +178,7 @@
   #:use-module (gnu packages vulkan)
   #:use-module (gnu packages web)
   #:use-module (gnu packages webkit)
+  #:use-module (gnu packages wget)
   #:use-module (gnu packages wxwidgets)
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xiph)
@@ -1020,6 +1021,113 @@ H.264 (MPEG-4 AVC) video streams.")
 (@command{mkvmerge}).")
     (license license:gpl2)))
 
+(define-public pipe-viewer
+  (package
+    (name "pipe-viewer")
+    (version "0.1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/trizen/pipe-viewer")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1d2gfkd3nc0c4ah67250lqskkd85wpljrikw8a378ni398ngaq14"))))
+    (build-system perl-build-system)
+    (arguments
+     `(#:imported-modules
+       ((guix build copy-build-system)
+        ,@%perl-build-system-modules)
+       #:modules
+       (((guix build copy-build-system)
+         #:prefix copy:)
+        (guix build perl-build-system)
+        (guix build utils)
+        (srfi srfi-26))
+       #:module-build-flags
+       (list
+        "--gtk3")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-source
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* (find-files "." ".*-viewer$")
+               (("'ffmpeg'")
+                (format #f "'~a/bin/ffmpeg'"
+                        (assoc-ref inputs "ffmpeg")))
+               (("'wget'")
+                (format #f "'~a/bin/wget'"
+                        (assoc-ref inputs "wget")))
+               (("'xdg-open'")
+                (format #f "'~a/bin/xdg-open'"
+                        (assoc-ref inputs "xdg-utils")))
+               (("'youtube-dl'")
+                (format #f "'~a/bin/youtube-dl'"
+                        (assoc-ref inputs "youtube-dl"))))))
+         (add-after 'install 'install-xdg
+           (lambda args
+             (apply (assoc-ref copy:%standard-phases 'install)
+                    #:install-plan
+                    '(("share/icons" "share/pixmaps")
+                      ("share" "share/applications"
+                       #:include-regexp ("\\.desktop$")))
+                    args)))
+         (add-after 'install-xdg 'wrap-programs
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin-dir (string-append out "/bin/"))
+                    (site-dir (string-append out "/lib/perl5/site_perl/"))
+                    (perl-lib (getenv "PERL5LIB"))
+                    (gi-typelib (getenv "GI_TYPELIB_PATH")))
+               (for-each
+                (cut wrap-program <>
+                     `("PERL5LIB" ":" prefix (,perl-lib ,site-dir))
+                     `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib)))
+                (find-files bin-dir))))))))
+    (native-inputs
+     `(("module-build" ,perl-module-build)
+       ("test-pod" ,perl-test-pod)
+       ("test-simple" ,perl-test-simple)))
+    (inputs
+     `(("perl-data-dump" ,perl-data-dump)
+       ("perl-digest-md5" ,perl-digest-md5)
+       ("perl-encode" ,perl-encode)
+       ("ffmpeg" ,ffmpeg)
+       ("perl-file-path" ,perl-file-path)
+       ("perl-file-sharedir" ,perl-file-sharedir)
+       ("perl-getopt-long" ,perl-getopt-long)
+       ("gtk3" ,perl-gtk3)
+       ("perl-http-message" ,perl-http-message)
+       ("perl-json" ,perl-json)
+       ("perl-json-xs" ,perl-json-xs)
+       ("perl-libwww" ,perl-libwww)
+       ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
+       ("perl-lwp-useragent-cached" ,perl-lwp-useragent-cached)
+       ("perl-memoize" ,perl-memoize)
+       ("perl-mime-base64" ,perl-mime-base64)
+       ("perl-pathtools" ,perl-pathtools)
+       ("perl-scalar-list-utils" ,perl-scalar-list-utils)
+       ("perl-storable" ,perl-storable)
+       ("perl-term-ansicolor" ,perl-term-ansicolor)
+       ("perl-term-readline-gnu" ,perl-term-readline-gnu)
+       ("perl-text-parsewords" ,perl-text-parsewords)
+       ("perl-text-tabs+wrap" ,perl-text-tabs+wrap)
+       ("perl-unicode-linebreak" ,perl-unicode-linebreak)
+       ("perl-uri-escape" ,perl-uri-escape)
+       ("wget" ,wget)
+       ("xdg-utils" ,xdg-utils)
+       ("youtube-dl" ,youtube-dl)))
+    (propagated-inputs
+     `(("dconf" ,dconf)))
+    (home-page "https://github.com/trizen/pipe-viewer")
+    (synopsis "CLI+GUI YouTube Client")
+    (description "Pipe-Viewer is a lightweight application for searching and
+playing videos from YouTube.  It parses the YouTube website directly and relies
+on the Invidious instances only as a fallback method.")
+    (license license:artistic2.0)))
+
 (define-public straw-viewer
   (package
     (name "straw-viewer")
-- 
2.32.0





  parent reply	other threads:[~2021-06-30  3:19 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 14:44 [bug#49210] Replace straw-viewer with pipe-viewer Raghav Gururajan via Guix-patches via
2021-06-24 14:45 ` [bug#49210] [PATCH v1 01/16] gnu: Add perl-exporter Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 02/16] gnu: perl-glib: Propagate glib Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 03/16] gnu: perl-cairo: Propagate cairo Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 04/16] gnu: Add perl-cairo-gobject Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 05/16] gnu: Add perl-glib-object-introspection Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 06/16] gnu: Add perl-gtk3 Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 07/16] gnu: Add perl-text-tabs+wrap Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 08/16] gnu: Add perl-text-parsewords Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 09/16] gnu: Add perl-term-ansicolor Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 10/16] gnu: Add perl-test-portability-files Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 11/16] gnu: Add perl-xsloader Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 12/16] gnu: Add perl-storable Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 13/16] gnu: Add perl-encode Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 14/16] gnu: Add perl-mime-base64 Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 15/16] gnu: Add pipe-viewer Raghav Gururajan via Guix-patches via
2021-06-24 14:45   ` [bug#49210] [PATCH v1 16/16] gnu: straw-viewer: Deprecate package Raghav Gururajan via Guix-patches via
2021-06-25 19:52 ` [bug#49210] [PATCH v2 01/16] gnu: Add perl-exporter Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 02/16] gnu: perl-glib: Propagate glib Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 03/16] gnu: perl-cairo: Propagate cairo Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 04/16] gnu: Add perl-cairo-gobject Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 05/16] gnu: Add perl-glib-object-introspection Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 06/16] gnu: Add perl-gtk3 Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 07/16] gnu: Add perl-text-tabs+wrap Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 08/16] gnu: Add perl-text-parsewords Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 09/16] gnu: Add perl-term-ansicolor Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 10/16] gnu: Add perl-test-portability-files Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 11/16] gnu: Add perl-xsloader Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 12/16] gnu: Add perl-storable Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 13/16] gnu: Add perl-encode Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 14/16] gnu: Add perl-mime-base64 Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 15/16] gnu: Add pipe-viewer Raghav Gururajan via Guix-patches via
2021-06-25 19:52   ` [bug#49210] [PATCH v2 16/16] gnu: straw-viewer: Deprecate package Raghav Gururajan via Guix-patches via
2021-06-30  3:17 ` [bug#49210] [PATCH v3 01/16] gnu: Add perl-exporter Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 02/16] gnu: perl-glib: Propagate glib Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 03/16] gnu: perl-cairo: Propagate cairo Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 04/16] gnu: Add perl-cairo-gobject Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 05/16] gnu: Add perl-glib-object-introspection Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 06/16] gnu: Add perl-gtk3 Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 07/16] gnu: Add perl-text-tabs+wrap Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 08/16] gnu: Add perl-text-parsewords Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 09/16] gnu: Add perl-term-ansicolor Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 10/16] gnu: Add perl-test-portability-files Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 11/16] gnu: Add perl-xsloader Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 12/16] gnu: Add perl-storable Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 13/16] gnu: Add perl-encode Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` [bug#49210] [PATCH v3 14/16] gnu: Add perl-mime-base64 Raghav Gururajan via Guix-patches via
2021-06-30  3:17   ` Raghav Gururajan via Guix-patches via [this message]
2021-06-30  3:17   ` [bug#49210] [PATCH v3 16/16] gnu: straw-viewer: Deprecate package Raghav Gururajan via Guix-patches via
2021-06-30  3:35 ` [bug#49210] [PATCH v4 01/16] gnu: Add perl-exporter Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 02/16] gnu: perl-glib: Propagate glib Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 03/16] gnu: perl-cairo: Propagate cairo Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 04/16] gnu: Add perl-cairo-gobject Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 05/16] gnu: Add perl-glib-object-introspection Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 06/16] gnu: Add perl-gtk3 Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 07/16] gnu: Add perl-text-tabs+wrap Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 08/16] gnu: Add perl-text-parsewords Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 09/16] gnu: Add perl-term-ansicolor Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 10/16] gnu: Add perl-test-portability-files Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 11/16] gnu: Add perl-xsloader Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 12/16] gnu: Add perl-storable Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 13/16] gnu: Add perl-encode Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 14/16] gnu: Add perl-mime-base64 Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 15/16] gnu: Add pipe-viewer Raghav Gururajan via Guix-patches via
2021-06-30  3:35   ` [bug#49210] [PATCH v4 16/16] gnu: straw-viewer: Deprecate package Raghav Gururajan via Guix-patches via
2021-07-04  1:03 ` [bug#49210] [PATCH v5 01/16] gnu: Add perl-exporter Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 02/16] gnu: perl-glib: Propagate glib Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 03/16] gnu: perl-cairo: Propagate cairo Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 04/16] gnu: Add perl-cairo-gobject Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 05/16] gnu: Add perl-glib-object-introspection Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 06/16] gnu: Add perl-gtk3 Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 07/16] gnu: Add perl-text-tabs+wrap Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 08/16] gnu: Add perl-text-parsewords Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 09/16] gnu: Add perl-term-ansicolor Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 10/16] gnu: Add perl-test-portability-files Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 11/16] gnu: Add perl-xsloader Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 12/16] gnu: Add perl-storable Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 13/16] gnu: Add perl-encode Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 14/16] gnu: Add perl-mime-base64 Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 15/16] gnu: Add pipe-viewer Raghav Gururajan via Guix-patches via
2021-07-04  1:03   ` [bug#49210] [PATCH v5 16/16] gnu: straw-viewer: Deprecate package Raghav Gururajan via Guix-patches via
2021-07-05  1:58 ` bug#49210: (no subject) Raghav Gururajan via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210630031753.14653-15-rg@raghavgururajan.name \
    --to=guix-patches@gnu.org \
    --cc=49210@debbugs.gnu.org \
    --cc=rg@raghavgururajan.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).