Skip to content

Commit

Permalink
twitch-dl: add ffmpeg to application path (#345303)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds committed Sep 29, 2024
2 parents c1897bc + 776be09 commit d71c24c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/by-name/tw/twitch-dl/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, python3Packages
, installShellFiles
, scdoc
, ffmpeg
}:

python3Packages.buildPythonApplication rec {
Expand All @@ -28,6 +29,7 @@ python3Packages.buildPythonApplication rec {
scdoc
];


propagatedBuildInputs = with python3Packages; [
click
httpx
Expand Down Expand Up @@ -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
Expand All @@ -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";
};
}

0 comments on commit d71c24c

Please sign in to comment.