klipper: fix cross compilation
This commit is contained in:
parent
e39aa8f4c6
commit
a4f6862fb1
|
@ -38,6 +38,10 @@ stdenv.mkDerivation rec {
|
||||||
substituteInPlace $file \
|
substituteInPlace $file \
|
||||||
--replace '/usr/bin/env python2' '/usr/bin/env python'
|
--replace '/usr/bin/env python2' '/usr/bin/env python'
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# needed for cross compilation
|
||||||
|
substituteInPlace ./chelper/__init__.py \
|
||||||
|
--replace 'GCC_CMD = "gcc"' 'GCC_CMD = "${stdenv.cc.targetPrefix}cc"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# NB: We don't move the main entry point into `/bin`, or even symlink it,
|
# NB: We don't move the main entry point into `/bin`, or even symlink it,
|
||||||
|
|
Loading…
Reference in a new issue