Rust: Difference between revisions

imported>Torhovland
(Cleaned up duplicate mkShell samples.)
imported>Mathiasmagnusson
m (Use RUSTUP_HOME and CARGO_HOME variables in recommended shell.nix (if set))
Line 47: Line 47:
     HISTFILE = toString ./.history;
     HISTFILE = toString ./.history;
     shellHook = ''
     shellHook = ''
       export PATH=$PATH:~/.cargo/bin
       export PATH=$PATH:${CARGO_HOME:-~/.cargo}/bin
       export PATH=$PATH:~/.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 libvmi precompiled library to rustc search path