Fixed cross-compiler
This commit is contained in:
parent
44fe07a242
commit
d72f718fb5
|
@ -15,6 +15,7 @@ pkgs.mkShell rec {
|
||||||
mpfr
|
mpfr
|
||||||
texinfo
|
texinfo
|
||||||
isl
|
isl
|
||||||
|
zlib
|
||||||
];
|
];
|
||||||
RUSTC_VERSION = "nightly"; # Required for some experimental cargo features
|
RUSTC_VERSION = "nightly"; # Required for some experimental cargo features
|
||||||
hardeningDisable = [ "all" ]; # Required to compile gcc
|
hardeningDisable = [ "all" ]; # Required to compile gcc
|
||||||
|
@ -25,7 +26,7 @@ pkgs.mkShell rec {
|
||||||
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
|
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
|
||||||
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/nightly-x86_64-unknown-linux-gnu/bin/
|
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/nightly-x86_64-unknown-linux-gnu/bin/
|
||||||
export PATH="$PATH:$PWD/opt/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
|
# Add glibc, clang, glib, and other headers to bindgen search path
|
||||||
BINDGEN_EXTRA_CLANG_ARGS =
|
BINDGEN_EXTRA_CLANG_ARGS =
|
||||||
|
|
Loading…
Reference in a new issue