helm/modules/dev/rust.nix

24 lines
445 B
Nix
Raw Normal View History

2019-12-13 00:06:52 -08:00
{ config, lib, pkgs, ... }:
{
2020-01-12 15:17:17 -08:00
my = {
packages = with pkgs; [
rustup
rustfmt
rls
];
2020-01-12 15:17:17 -08:00
env.RUSTUP_HOME = "$XDG_DATA_HOME/rustup";
env.CARGO_HOME = "$XDG_DATA_HOME/cargo";
2020-01-12 15:17:17 -08:00
env.PATH = [ "$CARGO_HOME/bin" ];
alias.rs = "rustc";
alias.rsp = "rustup";
alias.ca = "cargo";
setup = ''
${pkgs.rustup}/bin/rustup update nightly
${pkgs.rustup}/bin/rustup default nightly
'';
2019-12-13 00:06:52 -08:00
};
}