varia: refactor substituteInPlace

This commit is contained in:
awwpotato
2025-03-10 09:46:49 -07:00
parent e098b5b11f
commit 4694a3a2e6

View File

@@ -27,8 +27,7 @@ python3Packages.buildPythonApplication rec {
postPatch = ''
substituteInPlace src/varia-py.in \
--replace-fail 'aria2cexec = sys.argv[1]' 'aria2cexec = "${lib.getExe aria2}"'
substituteInPlace src/varia-py.in \
--replace-fail 'aria2cexec = sys.argv[1]' 'aria2cexec = "${lib.getExe aria2}"' \
--replace-fail 'ffmpegexec = sys.argv[2]' 'ffmpegexec = "${lib.getExe ffmpeg}"'
'';