diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..16d17d2 --- /dev/null +++ b/shell.nix @@ -0,0 +1,20 @@ +{ pkgs ? import {} }: + 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; + }; + }