2019-12-13 00:06:52 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
2020-01-12 15:17:17 -08:00
|
|
|
my = {
|
2020-01-12 16:47:33 -08:00
|
|
|
packages = with pkgs; [
|
|
|
|
rustup
|
|
|
|
rustfmt
|
|
|
|
rls
|
|
|
|
];
|
|
|
|
|
2020-01-12 15:17:17 -08:00
|
|
|
env.RUSTUP_HOME = "$XDG_DATA_HOME/rustup";
|
2020-01-12 16:47:33 -08:00
|
|
|
env.CARGO_HOME = "$XDG_DATA_HOME/cargo";
|
2020-01-12 15:17:17 -08:00
|
|
|
env.PATH = [ "$CARGO_HOME/bin" ];
|
2020-01-12 16:47:33 -08:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|