Rust: Difference between revisions
imported>Volhovm Removed the malicious HISTFILE rewrite. |
imported>GuillaumeDesforges m libvmi is broken on nixpkgs because `xen` is marked as insecure oftentime, so it makes newcomers face an issue which is too hard to fix alone for a beginner, even though `libvmi` is not required to build a minimal rust package generated with `cargo init`. |
||
Line 43: | Line 43: | ||
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/$RUSTC_VERSION-x86_64-unknown-linux-gnu/bin/ | export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/$RUSTC_VERSION-x86_64-unknown-linux-gnu/bin/ | ||
''; | ''; | ||
# Add | # Add precompiled library to rustc search path | ||
RUSTFLAGS = (builtins.map (a: ''-L ${a}/lib'') [ | RUSTFLAGS = (builtins.map (a: ''-L ${a}/lib'') [ | ||
pkgs.libvmi | # add libraries here (e.g. pkgs.libvmi) | ||
]); | ]); | ||
# Add | # Add glibc, clang, glib and other headers to bindgen search path | ||
BINDGEN_EXTRA_CLANG_ARGS = | BINDGEN_EXTRA_CLANG_ARGS = | ||
# Includes with normal include path | # Includes with normal include path | ||
(builtins.map (a: ''-I"${a}/include"'') [ | (builtins.map (a: ''-I"${a}/include"'') [ | ||
pkgs.libvmi | # add dev libraries here (e.g. pkgs.libvmi.dev) | ||
pkgs.glibc.dev | pkgs.glibc.dev | ||
]) | ]) |