niri: force link to nixpkgs' libEGL

This commit is contained in:
Gabriel Arazas 2024-01-10 22:24:34 +08:00
parent 7c91a7dcdc
commit cb54f46d77
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -6,6 +6,7 @@
, udev , udev
, libxkbcommon , libxkbcommon
, libinput , libinput
, libglvnd
, systemd , systemd
, wayland , wayland
, mesa , mesa
@ -37,6 +38,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ buildInputs = [
libinput libinput
libxkbcommon libxkbcommon
libglvnd
mesa mesa
pipewire pipewire
seatd seatd
@ -52,6 +54,13 @@ rustPlatform.buildRustPackage rec {
}; };
}; };
RUSTFLAGS = builtins.map (arg: "-C link-arg=${arg}") [
"-Wl,--push-state,--no-as-needed"
"-lEGL"
"-lwayland-client"
"-Wl,--pop-state"
];
postPatch = '' postPatch = ''
patchShebangs ./resources/niri-session patchShebangs ./resources/niri-session
''; '';