From 6016d4e2d96e803f8b363d15e6471cd8f68add90 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sat, 7 Sep 2024 13:38:01 +0200 Subject: [PATCH] update shell.nix --- shell.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 0555690..e453fac 100644 --- a/shell.nix +++ b/shell.nix @@ -1,11 +1,23 @@ {pkgs ? import {}}: +let +rust-toolchain = pkgs.symlinkJoin { + name = "rust-toolchain"; + paths = with pkgs; [rustc cargo rustPlatform.rustcSrc rustfmt clippy]; + }; +in pkgs.mkShell { nativeBuildInputs = with pkgs.buildPackages; [ - rustup + rust-toolchain + pkg-config xe lzma cargo-tarpaulin gnumake + iconv + + dotnet-sdk_8 ]; + + RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; }