2024-07-30 06:30:34 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { }, additionalBuildInputs ? [ ] }:
|
2024-07-30 05:04:58 +00:00
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
mkShell rec {
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2024-08-20 16:49:13 +00:00
|
|
|
mold
|
|
|
|
clang
|
2024-07-30 05:04:58 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2024-07-30 06:17:23 +00:00
|
|
|
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
|
2024-07-30 06:30:34 +00:00
|
|
|
] ++ additionalBuildInputs;
|
2024-07-30 05:04:58 +00:00
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
|
|
|
}
|