initial commit
This commit is contained in:
20
shell.nix
Normal file
20
shell.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user