Jump to content

Rust: Difference between revisions

59 bytes added ,  1 May 2023
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`.
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 libvmi precompiled library to rustc search path
     # 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 libvmi, glibc, clang, glib 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 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  
     ])
     ])