From d72f718fb5c5f67cf18d6f6459e3ef0613164be0 Mon Sep 17 00:00:00 2001 From: vanten-s Date: Fri, 29 Mar 2024 21:13:25 +0100 Subject: [PATCH] Fixed cross-compiler --- shell.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index abdf49d..0d455b1 100644 --- a/shell.nix +++ b/shell.nix @@ -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 =