tagger/shell.nix

15 lines
394 B
Nix

{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell rec {
buildInputs = with pkgs; [
rustup
];
RUSTC_VERSION = "stable";
shellHook = ''
rustup component add rust-analyzer
rustup default $RUSTC_VERSION
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/nightly-x86_64-unknown-linux-gnu/bin/
'';
}