From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:52862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9aKl-000721-J3 for guix-patches@gnu.org; Thu, 28 Mar 2019 15:05:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9aKk-00023j-MP for guix-patches@gnu.org; Thu, 28 Mar 2019 15:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49435) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9aKk-00023U-Hz for guix-patches@gnu.org; Thu, 28 Mar 2019 15:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h9aKk-00046i-4m for guix-patches@gnu.org; Thu, 28 Mar 2019 15:05:02 -0400 Subject: [bug#35033] [PATCH] gnu: mpv: Set absolute path to 'youtube-dl'. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:52677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9aJt-0006Gh-2J for guix-patches@gnu.org; Thu, 28 Mar 2019 15:04:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9aJs-0001kS-5b for guix-patches@gnu.org; Thu, 28 Mar 2019 15:04:09 -0400 Received: from mout0.freenet.de ([2001:748:100:40::2:2]:55336) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9aJr-0001jx-U3 for guix-patches@gnu.org; Thu, 28 Mar 2019 15:04:08 -0400 Received: from [195.4.92.164] (helo=mjail1.freenet.de) by mout0.freenet.de with esmtpa (ID eisenmann@fn.de) (port 25) (Exim 4.90_1 #2) id 1h9aJm-00052u-PT for guix-patches@gnu.org; Thu, 28 Mar 2019 20:04:02 +0100 Received: from [::1] (port=47620 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID eisenmann@fn.de) (Exim 4.90_1 #2) id 1h9aJm-0005SR-Om for guix-patches@gnu.org; Thu, 28 Mar 2019 20:04:02 +0100 Received: from sub4.freenet.de ([195.4.92.123]:49880) by mjail1.freenet.de with esmtpa (ID eisenmann@fn.de) (Exim 4.90_1 #2) id 1h9aHV-0002hP-D2 for guix-patches@gnu.org; Thu, 28 Mar 2019 20:01:41 +0100 From: Timo Eisenmann Date: Thu, 28 Mar 2019 21:00:54 +0100 Message-Id: <20190328200054.8306-1-eisenmann@fn.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35033@debbugs.gnu.org Cc: Timo Eisenmann * gnu/packages/video.scm (mpv)[arguments]: Add phase 'patch-paths' to substitute in the absolute path to 'youtube-dl'. --- gnu/packages/video.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 55a1931530..3c5ade55a3 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1326,6 +1326,13 @@ SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.") (arguments '(#:phases (modify-phases %standard-phases + (add-after + 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((ytdl (assoc-ref inputs "youtube-dl"))) + (substitute* "player/lua/ytdl_hook.lua" + (("\"youtube-dl\",") + (string-append "\"" ytdl "/bin/youtube-dl\",")))))) (add-before 'configure 'setup-waf (lambda* (#:key inputs #:allow-other-keys) -- 2.21.0