servicepoint-binding-c/devShells.nix
2025-06-01 16:51:11 +02:00

52 lines
854 B
Nix

{
pkgs,
fenix,
selfPkgs,
...
}:
(builtins.mapAttrs (
packageName: package:
pkgs.mkShell {
inputsFrom = [ package ];
packages = with pkgs; [
rustfmt
clippy
cargo-expand
cargo-tarpaulin
gdb
];
RUST_BACKTRACE = 1;
RUST_LOG = "all";
}
) selfPkgs)
// {
test = pkgs.mkShell {
packages = with pkgs; [
(pkgs.symlinkJoin {
name = "rust-toolchain";
paths = with pkgs; [
rustc
cargo
rustPlatform.rustcSrc
rustPlatform.rustLibSrc
rustfmt
clippy
cargo-expand
cargo-tarpaulin
];
})
gcc
gnumake
xe
libgcc
libunwind
pkgsStatic.gcc
pkgsStatic.libgcc
pkgsStatic.musl
];
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
};
}