klipper: stop using deprecated --replace argument (#524451)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user