mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
build(nix): use RUSTFLAGS to pass gbm/libinput library paths to linker
This commit is contained in:
parent
fe077c69e1
commit
f987f23646
1 changed files with 3 additions and 3 deletions
|
|
@ -39,9 +39,9 @@ in {
|
||||||
libdrm mesa wayland libxkbcommon seatd udev dbus libGL libdisplay-info libinput
|
libdrm mesa wayland libxkbcommon seatd udev dbus libGL libdisplay-info libinput
|
||||||
];
|
];
|
||||||
extraNativeBuildInputs = with pkgs; [ wayland-scanner ];
|
extraNativeBuildInputs = with pkgs; [ wayland-scanner ];
|
||||||
preBuild = ''
|
extraEnv = {
|
||||||
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)"
|
RUSTFLAGS = "-L${pkgs.mesa}/lib -L${pkgs.libinput}/lib";
|
||||||
'';
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
weft-servo-shell = mkWeftPkg {
|
weft-servo-shell = mkWeftPkg {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue