{
description = "An owned slice type with German string optimizations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs =
{ nixpkgs, rust-overlay, ... }:
let
inherit (nixpkgs) lib;
forEachSystem = lib.genAttrs lib.systems.flakeExposed;
in
{
devShell = forEachSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(toolchain.override {
extensions = [
"rust-src"
"clippy"
"llvm-tools-preview"
"miri"
];
})
rust-analyzer
cargo-llvm-cov
valgrind
];
RUST_BACKTRACE = "1";
}
);
};
}