Added comments and removed more unnecesary code

This commit is contained in:
vanten-s 2024-03-26 20:45:53 +01:00
parent e108f8bd97
commit b6d591c224
Signed by: vanten-s
GPG key ID: DE3060396884D3F2

View file

@ -16,23 +16,16 @@ pkgs.mkShell rec {
texinfo texinfo
isl isl
]; ];
RUSTC_VERSION = "nightly"; RUSTC_VERSION = "nightly"; # Required for some experimental cargo features
hardeningDisable = [ "all" ]; hardeningDisable = [ "all" ]; # Required to compile gcc
# https://github.com/rust-lang/rust-bindgen#environment-variables
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages_latest.libclang.lib ]; LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages_latest.libclang.lib ];
shellHook = '' shellHook = ''
rustup default nightly
rustup component add rust-analyzer rustup component add rust-analyzer
rustup component add rust-src rustup component add rust-src # Needed for compiling to a custom target
rustup target add x86_64-unknown-none
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"
''; '';
# Add precompiled library to rustc search path
RUSTFLAGS = (builtins.map (a: ''-L ${a}/lib'') [
# add libraries here (e.g. pkgs.libvmi)
]);
# 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 =
# Includes normal include path # Includes normal include path