raspi-oled/shell.nix
FliegendeWurst d8f97437e9 Unbundle sqlite3 and link it instead
To run the cross compiled binary on Debian, do
 patchelf --set-interpreter /lib/ld-linux-armhf.so.3 raspi-oled
2022-05-06 11:00:10 +02:00

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";
}