diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..1424098 --- /dev/null +++ b/shell.nix @@ -0,0 +1,30 @@ +{ + pkgs ? import { }, +}: +pkgs.mkShell rec { + libs = with pkgs; [ + # wayland + libxkbcommon + libGL + wayland + + libx11 + libxcursor + libxi + + clang + ]; + + nativeBuildInputs = + with pkgs; + [ + rustc + cargo + rust-analyzer + python3Packages.fonttools + ] + ++ libs; + + # add libs to path + LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libs}"; +}