unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#34653] [PATCH] gnu: twitchy: Update to 3.4.
@ 2019-02-25 18:38 Timo Eisenmann
  2019-02-26  2:34 ` Leo Famulari
  0 siblings, 1 reply; 2+ messages in thread
From: Timo Eisenmann @ 2019-02-25 18:38 UTC (permalink / raw)
  To: 34653; +Cc: Timo Eisenmann

* gnu/packages/video.scm: (twitchy): Update to 3.4.
[arguments]: Add phase 'patch-paths' to substitute in the absolute path to
'streamlink'.
---
 gnu/packages/video.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index b0c875befe..52f151bd78 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -32,6 +32,7 @@
 ;;; Copyright © 2018 Mark Meyer <mark@ofosos.org>
 ;;; Copyright © 2018 Gábor Boskovit <boskovits@gmail.com>
 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
+;;; Copyright © 2019 Timo Eisenmann <eisenmann@fn.de>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1999,10 +2000,10 @@ from sites like Twitch.tv and pipes them into a video player of choice.")
   (deprecated-package "livestreamer" streamlink))
 
 (define-public twitchy
-  (let ((commit "0c0f925b9c7ff2aed4a3b0046561cb794143c398")) ;Fixes tests.
+  (let ((commit "9beb36d80b16662414129693e74fa3a2fd97554e")) ; 3.4 has no tag
     (package
       (name "twitchy")
-      (version (git-version "3.2" "1" commit))
+      (version (git-version "3.4" "1" commit))
       (source
        (origin
          (method git-fetch)
@@ -2012,11 +2013,18 @@ from sites like Twitch.tv and pipes them into a video player of choice.")
          (file-name (git-file-name name version))
          (sha256
           (base32
-           "02aizvsr744sh8bdqvwwsmp2qpczlzn8fy76h5dyd3517n9nlcz9"))))
+           "0di03h1j9ipp2bbnxxlxz07v87icyg2hmnsr4s7184z5ql8kpzr7"))))
       (build-system python-build-system)
       (arguments
        '(#:phases
          (modify-phases %standard-phases
+           (add-after 'unpack 'patch-paths
+             (lambda* (#:key inputs #:allow-other-keys)
+               (substitute* "twitchy/twitchy_play.py"
+                 (("\"streamlink ")
+                  (string-append "\"" (assoc-ref inputs "streamlink")
+                                 "/bin/streamlink ")))
+               #t))
            (add-before 'check 'check-setup
              (lambda _
                (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’.
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#34653] [PATCH] gnu: twitchy: Update to 3.4.
  2019-02-25 18:38 [bug#34653] [PATCH] gnu: twitchy: Update to 3.4 Timo Eisenmann
@ 2019-02-26  2:34 ` Leo Famulari
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2019-02-26  2:34 UTC (permalink / raw)
  To: Timo Eisenmann; +Cc: 34653

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

On Mon, Feb 25, 2019 at 07:38:54PM +0100, Timo Eisenmann wrote:
> * gnu/packages/video.scm: (twitchy): Update to 3.4.
> [arguments]: Add phase 'patch-paths' to substitute in the absolute path to
> 'streamlink'.

Thanks! Pushed as 04b6e9c5dffb0830338dda39d90cf7b2d165b3fc

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-26  2:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-25 18:38 [bug#34653] [PATCH] gnu: twitchy: Update to 3.4 Timo Eisenmann
2019-02-26  2:34 ` Leo Famulari

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).