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
, libxkbcommon
, libinput
, libglvnd
, systemd
, wayland
, mesa
@ -37,6 +38,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [
libinput
libxkbcommon
libglvnd
mesa
pipewire
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 = ''
patchShebangs ./resources/niri-session
'';