mirror of
https://github.com/FliegendeWurst/raspi-oled.git
synced 2024-11-28 13:05:53 +00:00
68fb4c13ba
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";
|
|
}
|