ref: 9c25e3a38f465444d684a58a24f7567e6b59299c
parent: bffc4bdc7f73139ae834619e3a018c17ceee9398
author: glenda <glenda@fileserver>
date: Mon Jan 5 22:41:52 EST 2026
flakes
--- a/linux/flake.nix
+++ b/linux/flake.nix
@@ -33,8 +33,10 @@
zlib
];
- preBuild = ''
- # Generate xdg-shell protocol header
+ buildPhase = ''
+ runHook preBuild
+
+ # Generate xdg-shell protocol header (wlroots needs this)
wayland-scanner server-header \
${pkgs.wayland-protocols}/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml \xdg-shell-protocol.h
@@ -42,12 +44,12 @@
wayland-scanner private-code \
${pkgs.wayland-protocols}/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml \xdg-shell-protocol.c
- '';
- # Just use the Makefile
- buildPhase = ''
- runHook preBuild
+ # Add current dir to include path so gcc finds xdg-shell-protocol.h
+ export C_INCLUDE_PATH="$PWD''${C_INCLUDE_PATH:+:$C_INCLUDE_PATH}"+
make
+
runHook postBuild
'';
--
⑨