lol

python313Packages.pydub: fix build, use replaceVars

+5 -3
+5 -3
pkgs/development/python-modules/pydub/default.nix
··· 1 1 { 2 2 lib, 3 + audioop-lts, 3 4 buildPythonPackage, 4 5 fetchFromGitHub, 5 6 fetchpatch, ··· 7 8 pytestCheckHook, 8 9 pythonOlder, 9 10 setuptools, 10 - substituteAll, 11 + replaceVars, 11 12 }: 12 13 13 14 buildPythonPackage rec { ··· 32 33 hash = "sha256-3OIzvTgGK3r4/s5y7izHvouB4uJEmjO6cgKvegtTf7A="; 33 34 }) 34 35 # Fix paths to ffmpeg, ffplay and ffprobe 35 - (substituteAll { 36 - src = ./ffmpeg-fix-path.patch; 36 + (replaceVars ./ffmpeg-fix-path.patch { 37 37 ffmpeg = lib.getExe ffmpeg-full; 38 38 ffplay = lib.getExe' ffmpeg-full "ffplay"; 39 39 ffprobe = lib.getExe' ffmpeg-full "ffprobe"; ··· 41 41 ]; 42 42 43 43 nativeBuildInputs = [ setuptools ]; 44 + 45 + dependencies = [ audioop-lts ]; 44 46 45 47 nativeCheckInputs = [ 46 48 pytestCheckHook