{ pkgs, lib, config, ... }: { # https://devenv.sh/languages/ languages.rust.enable = true; # https://devenv.sh/packages/ packages = with pkgs; [ bacon wgsl-analyzer wayland libxkbcommon vulkan-loader ]; env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; [ wayland libxkbcommon vulkan-loader libGL ]); # Format staged files on commit with treefmt; rustfmt handles Rust sources. treefmt.enable = true; treefmt.config.programs.rustfmt.enable = true; git-hooks.hooks.treefmt.enable = true; # See full reference at https://devenv.sh/reference/options/ }