You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
510 B
Nix
19 lines
510 B
Nix
# Overlay that builds on top of rust-overlay.nix.
|
|
# Adds rust-src component to all channels which is helpful for racer, intellij, ...
|
|
|
|
self: super:
|
|
|
|
let mapAttrs = super.stdenv.lib.mapAttrs;
|
|
flip = super.stdenv.lib.flip;
|
|
in {
|
|
# install stable rust with rust-src:
|
|
# "nix-env -i -A nixos.latest.rustChannels.stable.rust"
|
|
|
|
latest.rustChannels =
|
|
flip mapAttrs super.latest.rustChannels (name: value: value // {
|
|
rust = value.rust.override {
|
|
extensions = ["rust-src"];
|
|
};
|
|
});
|
|
}
|