diff --git a/pkgs/niri/default.nix b/pkgs/niri/default.nix index e1218382..f13a5c52 100644 --- a/pkgs/niri/default.nix +++ b/pkgs/niri/default.nix @@ -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 '';