Merge pull request #254017 from cyber-murmel/klipper-cross

This commit is contained in:
Artturi 2023-09-08 17:30:32 +03:00 committed by GitHub
commit db9208ab98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,10 @@ stdenv.mkDerivation rec {
substituteInPlace $file \
--replace '/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"'
'';
# NB: We don't move the main entry point into `/bin`, or even symlink it,