diff --git a/flake.nix b/flake.nix index d25d108..3129ec9 100644 --- a/flake.nix +++ b/flake.nix @@ -39,9 +39,30 @@ overlays = [ ]; }; # https://numtide.github.io/devshell/intro.html - devshells.default = { + devshells.default = rec { # These commands will be shown in the motd that users read # upon entering the shell + packages = with pkgs; [ + expat + fontconfig + freetype + freetype.dev + libGL + pkg-config + xorg.libX11 + xorg.libXcursor + xorg.libXi + xorg.libXrandr + wayland + libxkbcommon + ]; + + env = [ + { + name = "LD_LIBRARY_PATH"; + value = builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" packages; + } + ]; commands = [ { package = pkgs.cargo;