2024-09-05 22:03:06 +02:00
|
|
|
{pkgs ? import <nixpkgs> {}}: let
|
|
|
|
rust-toolchain = pkgs.symlinkJoin {
|
|
|
|
name = "rust-toolchain";
|
|
|
|
paths = with pkgs; [rustc cargo rustPlatform.rustcSrc rustfmt clippy];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs.buildPackages; [
|
|
|
|
rust-toolchain
|
2024-06-25 22:10:33 +02:00
|
|
|
|
2024-09-05 22:03:06 +02:00
|
|
|
pkg-config
|
|
|
|
xe
|
|
|
|
lzma
|
2024-06-25 22:10:33 +02:00
|
|
|
|
2024-09-05 22:03:06 +02:00
|
|
|
cargo-tarpaulin
|
2024-06-25 22:10:33 +02:00
|
|
|
|
2024-09-05 22:03:06 +02:00
|
|
|
gcc
|
|
|
|
gnumake
|
|
|
|
|
2024-06-27 21:11:14 +02:00
|
|
|
# required for python bindings
|
|
|
|
iconv
|
|
|
|
|
2024-09-05 22:03:06 +02:00
|
|
|
# dotnet-sdk_8
|
|
|
|
];
|
|
|
|
|
|
|
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
|
|
}
|