mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
put the whole rust toolchain into one package so Rider can handle it
This commit is contained in:
parent
051dbfabea
commit
34ca374e14
16
shell.nix
16
shell.nix
|
@ -1,16 +1,24 @@
|
||||||
{pkgs ? import <nixpkgs> {}}:
|
{pkgs ? import <nixpkgs> {}}: let
|
||||||
pkgs.mkShell {
|
rust-toolchain = pkgs.symlinkJoin {
|
||||||
|
name = "rust-toolchain";
|
||||||
|
paths = with pkgs; [rustc cargo rustPlatform.rustcSrc rustfmt clippy];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs.buildPackages; [
|
nativeBuildInputs = with pkgs.buildPackages; [
|
||||||
rustc cargo gcc rustfmt clippy
|
rust-toolchain
|
||||||
|
|
||||||
pkg-config
|
pkg-config
|
||||||
xe
|
xe
|
||||||
lzma
|
lzma
|
||||||
|
|
||||||
cargo-tarpaulin
|
cargo-tarpaulin
|
||||||
|
|
||||||
|
gcc
|
||||||
gnumake
|
gnumake
|
||||||
|
|
||||||
# dotnet-sdk_8
|
# dotnet-sdk_8
|
||||||
];
|
];
|
||||||
|
|
||||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue