From 776be097b370fa063f6a8c2657197abd3cfe9cbd Mon Sep 17 00:00:00 2001 From: hauskens Date: Sun, 29 Sep 2024 16:28:06 +0200 Subject: [PATCH] twitch-dl: add ffmpeg to application path - Added ffmpeg to PATH - Added Hausken as maintainer --- pkgs/by-name/tw/twitch-dl/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/tw/twitch-dl/package.nix b/pkgs/by-name/tw/twitch-dl/package.nix index 4ae7a2e7b87a337..18c446dcf498724 100644 --- a/pkgs/by-name/tw/twitch-dl/package.nix +++ b/pkgs/by-name/tw/twitch-dl/package.nix @@ -3,6 +3,7 @@ , python3Packages , installShellFiles , scdoc +, ffmpeg }: python3Packages.buildPythonApplication rec { @@ -28,6 +29,7 @@ python3Packages.buildPythonApplication rec { scdoc ]; + propagatedBuildInputs = with python3Packages; [ click httpx @@ -58,6 +60,10 @@ python3Packages.buildPythonApplication rec { "twitchdl.commands" ]; + makeWrapperArgs = [ + "--prefix" "PATH" ":" (lib.makeBinPath [ ffmpeg ]) + ]; + postInstall = '' scdoc < twitch-dl.1.scd > twitch-dl.1 installManPage twitch-dl.1 @@ -72,7 +78,7 @@ python3Packages.buildPythonApplication rec { homepage = "https://github.com/ihabunek/twitch-dl"; changelog = "https://github.com/ihabunek/twitch-dl/blob/${src.rev}/CHANGELOG.md"; license = licenses.gpl3Only; - maintainers = with maintainers; [ pbsds ]; + maintainers = with maintainers; [ pbsds hausken ]; mainProgram = "twitch-dl"; }; }