Fixed cross-compiler

This commit is contained in:
vanten-s 2024-03-29 21:13:25 +01:00
parent 44fe07a242
commit d72f718fb5
Signed by: vanten-s
GPG key ID: DE3060396884D3F2

View file

@ -15,6 +15,7 @@ pkgs.mkShell rec {
mpfr
texinfo
isl
zlib
];
RUSTC_VERSION = "nightly"; # Required for some experimental cargo features
hardeningDisable = [ "all" ]; # Required to compile gcc
@ -25,7 +26,7 @@ pkgs.mkShell rec {
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/nightly-x86_64-unknown-linux-gnu/bin/
export PATH="$PATH:$PWD/opt/bin"
./build-cross-compiler.sh
NIX_ENFORCE_PURITY=0 ./build-cross-compiler.sh # Stupid fucking shit hack
'';
# Add glibc, clang, glib, and other headers to bindgen search path
BINDGEN_EXTRA_CLANG_ARGS =