raspi-oled/shell.nix
FliegendeWurst 68fb4c13ba 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
2021-10-09 12:07:13 +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";
}