Files
maxflow-rs/shell.nix
2025-02-18 17:10:44 +01:00

21 lines
420 B
Nix

{ pkgs ? import <nixpkgs> {} }:
let
libPath = with pkgs; lib.makeLibraryPath [
libGL
libxkbcommon
wayland
];
in {
devShell = with pkgs; mkShell {
buildInputs = [
cargo
rustc
rust-analyzer
];
RUST_LOG = "debug";
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
LD_LIBRARY_PATH = libPath;
};
}