mirror of
https://github.com/FliegendeWurst/raspi-oled.git
synced 2024-11-08 05:10:36 +00:00
d8f97437e9
To run the cross compiled binary on Debian, do patchelf --set-interpreter /lib/ld-linux-armhf.so.3 raspi-oled
10 lines
340 B
Nix
10 lines
340 B
Nix
with (import <nixpkgs> {});
|
|
mkShell {
|
|
nativeBuildInputs = [
|
|
pkgsCross.muslpi.stdenv.cc
|
|
pkgsCross.muslpi.sqlite
|
|
];
|
|
CARGO_TARGET_ARM_UNKNOWN_LINUX_MUSLEABIHF_LINKER = "${pkgsCross.muslpi.stdenv.cc}/bin/armv6l-unknown-linux-musleabihf-ld";
|
|
#TARGET_CC = "${pkgsCross.muslpi.stdenv.cc}/bin/armv6l-unknown-linux-musleabihf-cc";
|
|
}
|