Unverified Commit d71c24c0 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

twitch-dl: add ffmpeg to application path (#345303)

parents c1897bce 776be097
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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";
  };
}