diff --git a/Makefile b/Makefile index 4fcdd26..e18fd5c 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ l_wl_protocols := gen/l_wl_protocols/xdg-shell-client.h $(xdg_shell_private) out/l2/r0: src/l2/tests/r0/r0.c $(HEADERS_src_l2) $(l_wl_protocols) mkdir -p out/l2 - $(cc) $(cflags) -o $@ $< $(xdg_shell_private) -lvulkan -lm -lxkbcommon -lwayland-client + $(cc) $(cflags) -o $@ $< $(xdg_shell_private) -lvulkan -lm -lxkbcommon -lwayland-client -lpng out/l2/r1: src/l2/tests/r1/r1.c $(HEADERS_src_l2) $(l_wl_protocols) mkdir -p out/l2 diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..92fc387 --- /dev/null +++ b/shell.nix @@ -0,0 +1,33 @@ +{ pkgs ? import {}}: + +let libs = (with pkgs; [ + fontconfig + freetype + zlib + sqlite + vulkan-headers + vulkan-loader + vulkan-validation-layers + libxkbcommon + libpng + ]); in +pkgs.mkShell { + buildInputs = with pkgs; [ + pipewire + shaderc + gnumake + gcc + cmake # Does not actually needed by anything + pkg-config + wayland + wayland-protocols + wayland-scanner + mesa + ] ++ libs; + + shellHook = '' + export VK_LAYER_PATH="${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d" + echo Day ruined. + ''; +} +