klipper: stop using deprecated --replace argument (#524451)

This commit is contained in:
Cabia Rangris
2026-05-29 13:49:14 +00:00
committed by GitHub
+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 =