klipper: stop using deprecated --replace argument

This commit is contained in:
Bobbe
2026-05-29 14:33:59 +02:00
parent 8d10ccfc53
commit a62549daf7
+2 -2
View File
@@ -77,12 +77,12 @@ stdenv.mkDerivation rec {
postPatch = ''
for file in klippy.py console.py parsedump.py; do
substituteInPlace $file \
--replace '/usr/bin/env python2' '/usr/bin/env python'
--replace-warn '/usr/bin/env python2' '/usr/bin/env python'
done
# needed for cross compilation
substituteInPlace ./chelper/__init__*.py \
--replace 'GCC_CMD = "gcc"' 'GCC_CMD = "${stdenv.cc.targetPrefix}cc"'
--replace-warn 'GCC_CMD = "gcc"' 'GCC_CMD = "${stdenv.cc.targetPrefix}cc"'
'';
pythonInterpreter =