citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

rust-dev (626B)


      1 #!/usr/bin/env bash
      2 
      3 export RUST_CHANNEL=${RUST_CHANNEL:-stable}
      4 export RUST_SRC_PATH="$(nix-build '<nixpkgs>' --no-out-link -A rustChannels.$RUST_CHANNEL.rust-src)"/lib/rustlib/src/rust/src
      5 export LD_LIBRARY_PATH="$(nix-build '<nixpkgs>' --no-out-link -A rustChannels.$RUST_CHANNEL.rustc)"/lib:$LD_LIBRARY_PATH
      6 # texlive.combined.scheme-full \
      7 
      8 #export LIBCLANG_PATH="$(nix-build '<nixpkgs>' --no-out-link -A llvmPackages.libclang)/lib"
      9 
     10 #     cargo-bloat \
     11 
     12 # secp256k1 \
     13      #librsvg \
     14 
     15 exec nix-shell -p \
     16      rustChannels.$RUST_CHANNEL.clippy-preview \
     17      rustChannels.$RUST_CHANNEL.rust \
     18      rustracer \
     19      "$@"