26 lines
448 B
Nix
26 lines
448 B
Nix
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
with pkgs;
|
|
|
|
mkShell rec {
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
udev
|
|
alsa-lib
|
|
vulkan-loader
|
|
|
|
xorg.libX11 # To use the x11 feature
|
|
xorg.libXcursor
|
|
xorg.libXrandr
|
|
xorg.libXi
|
|
|
|
libxkbcommon # To use the wayland feature
|
|
wayland
|
|
|
|
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
|
|
];
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
|
}
|