nixpkgs-mozilla icon indicating copy to clipboard operation
nixpkgs-mozilla copied to clipboard

rust-overlay: make it work as a drop-in replacement for nixpkgs' rustPlatform

Open steveej opened this issue 7 years ago • 2 comments

The easiest way to use the overlay would be if one could just override the whole rustPlatform derivation, so that rust programs within nixpkgs will automatically make use the overlay.

I stumbled upon this when debugging why racer doesn't use a given RUST_SRC_PATH, finding that the wrapper overrides it from the rustPlatform's rust sources: https://github.com/NixOS/nixpkgs/blob/eb9f76911f1fee6ebd519220bc9843d3adac5ee7/pkgs/development/tools/rust/racer/default.nix#L27

steveej avatar Apr 06 '17 18:04 steveej

I think some parts of this / rust-nightly-nix can be upstreamed to nixpkgs, which is a) good in general, and b) make this easier.

Ericson2314 avatar Apr 07 '17 14:04 Ericson2314

As an extension of this issue, it would be very cool indeed if targets used the same syntax, for instance.

P-E-Meunier avatar Dec 02 '18 16:12 P-E-Meunier