fix(tubesync): add tools called by yt-dlp to PATH
This commit is contained in:
parent
f1f1254562
commit
df90ae4f05
|
@ -1,6 +1,8 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, ffmpeg
|
||||
, rtmpdump
|
||||
, atomicparsley
|
||||
, callPackage
|
||||
, fetchFromGitHub
|
||||
, fetchPypi
|
||||
|
@ -98,17 +100,22 @@ in stdenvNoCC.mkDerivation {
|
|||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
unpackPhase = "true";
|
||||
installPhase = ''
|
||||
installPhase = let
|
||||
prefix = ''--prefix PATH : "${lib.makeBinPath [
|
||||
ffmpeg rtmpdump atomicparsley
|
||||
]}"'';
|
||||
in ''
|
||||
mkdir -p "$out/bin"
|
||||
|
||||
makeWrapper "${python}/bin/python3" "$out/bin/tubesync-worker" \
|
||||
--chdir ${app}/app --add-flags \
|
||||
"${app}/app/manage.py process_tasks" \
|
||||
--set PATH ${lib.makeBinPath [ ffmpeg ]}
|
||||
${prefix}
|
||||
|
||||
makeWrapper "${gunicorn}/bin/gunicorn" "$out/bin/tubesync-gunicorn" \
|
||||
--chdir ${app}/app --add-flags \
|
||||
"-c ${app}/app/tubesync/gunicorn.py --capture-output tubesync.wsgi:application"
|
||||
"-c ${app}/app/tubesync/gunicorn.py --capture-output tubesync.wsgi:application" \
|
||||
${prefix}
|
||||
|
||||
makeWrapper "${python}/bin/python3" "$out/bin/tubesync-migrate" \
|
||||
--chdir "${app}/app" --add-flags \
|
||||
|
|
Loading…
Reference in a new issue