They don't know I am reproducible

This commit is contained in:
Андреев Григорий 2025-09-13 09:01:18 +03:00
parent 9c0b13346e
commit 83bef6da7e
2 changed files with 34 additions and 1 deletions

View File

@ -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

33
shell.nix Normal file
View File

@ -0,0 +1,33 @@
{ pkgs ? import <nixpkgs> {}}:
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.
'';
}