build(nix): use RUSTFLAGS to pass gbm/libinput library paths to linker

This commit is contained in:
Marco Allegretti 2026-03-12 22:09:38 +01:00
parent fe077c69e1
commit f987f23646

View file

@ -39,9 +39,9 @@ in {
libdrm mesa wayland libxkbcommon seatd udev dbus libGL libdisplay-info libinput
];
extraNativeBuildInputs = with pkgs; [ wayland-scanner ];
preBuild = ''
export NIX_LDFLAGS="$NIX_LDFLAGS $(pkg-config --libs-only-L gbm 2>/dev/null || echo) $(pkg-config --libs-only-L libinput 2>/dev/null || echo)"
'';
extraEnv = {
RUSTFLAGS = "-L${pkgs.mesa}/lib -L${pkgs.libinput}/lib";
};
};
weft-servo-shell = mkWeftPkg {