Skip to content

Commit

Permalink
add a shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukexor committed Aug 15, 2024
1 parent 9daa9bf commit 11fe6ba
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
with (import <nixpkgs> {
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
]}";
}

0 comments on commit 11fe6ba

Please sign in to comment.