{ inputs = { flake-utils.url = "github:numtide/flake-utils"; nixpkgs.url = "github:nixos/nixpkgs"; }; outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; in with pkgs; rec { devShell = mkShell rec { buildInputs = [ libxkbcommon libGL # WINIT_UNIX_BACKEND=wayland wayland # WINIT_UNIX_BACKEND=x11 xorg.libXcursor xorg.libXrandr xorg.libXi xorg.libX11 ]; LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; }; }); }