main
Johannes Hendrik Gerard van der Weide 2023-11-21 12:24:38 +01:00
parent b3b4e0f18a
commit c929e27241
1 changed files with 12 additions and 6 deletions

View File

@ -40,16 +40,19 @@
default = pkgs.mkShell {
# The Nix packages provided in the environment
packages = (with pkgs; [
# Fluff
onefetch
cargo-mommy
# Bevy
pkg-config
alsa-lib
vulkan-tools
vulkan-headers
vulkan-loader
vulkan-validation-layers
udev
clang
lld
# If on x11
xorg.libX11
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
@ -60,8 +63,11 @@
rustToolchain
]) ++ pkgs.lib.optionals pkgs.stdenv.isDarwin (with pkgs; [ libiconv ]);
shellHook = ''
onefetch
echo "Welcome to nix-hell uh nix-shell"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath [
pkgs.alsaLib
pkgs.udev
pkgs.vulkan-loader
]}"
'';
};
});