diff --git a/package/tubesync/default.nix b/package/tubesync/default.nix index c038690d..22cd3726 100644 --- a/package/tubesync/default.nix +++ b/package/tubesync/default.nix @@ -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 \