varia: refactor substituteInPlace (#388745)

This commit is contained in:
Pol Dellaiera
2025-03-10 20:44:33 +01:00
committed by GitHub
+1 -2
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}"'
'';