diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..442a34b8 --- /dev/null +++ b/shell.nix @@ -0,0 +1,25 @@ +with (import { + overlays = [ + (import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz")) + ]; +}); mkShell { + buildInputs = [ + alsa-lib + openssl + pkg-config + (rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override { + extensions = [ + "rust-analyzer" + "rust-src" # for rust-analyzer + ]; + targets = ["wasm32-unknown-unknown"]; + })) + udev + ]; + + LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [ + wayland + libxkbcommon + vulkan-loader + ]}"; +}