blob: 05cb6130ec84d872b1ba466cb6b6da62e7269f08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# 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"];
};
});
}
|