tagger/shell.nix

15 lines
394 B
Nix
Raw Normal View History

2024-05-05 13:35:12 +02:00
{ 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/
'';
}