put the whole rust toolchain into one package so Rider can handle it

This commit is contained in:
Vinzenz Schroeter 2024-09-05 22:03:06 +02:00
parent 051dbfabea
commit 34ca374e14

View file

@ -1,16 +1,24 @@
{pkgs ? import <nixpkgs> {}}: {pkgs ? import <nixpkgs> {}}: let
pkgs.mkShell { rust-toolchain = pkgs.symlinkJoin {
nativeBuildInputs = with pkgs.buildPackages; [ name = "rust-toolchain";
rustc cargo gcc rustfmt clippy paths = with pkgs; [rustc cargo rustPlatform.rustcSrc rustfmt clippy];
};
in
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
rust-toolchain
pkg-config pkg-config
xe xe
lzma lzma
cargo-tarpaulin
gnumake
# dotnet-sdk_8 cargo-tarpaulin
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; gcc
} gnumake
# dotnet-sdk_8
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}