diff options
author | Artturin <Artturin@artturin.com> | 2021-10-21 20:17:46 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2021-10-21 20:49:23 +0300 |
commit | 24b7f415e6d08370a5f0908066a286adfc368360 (patch) | |
tree | 0b7bbd440382d8c67fdf83f4093c39f2fd16717f /pkgs/applications/editors | |
parent | b2ecf6ed9e4c1d6387acb7608d2133c598976bba (diff) |
neovide: only enable wayland on linux
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/neovim/neovide/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/applications/editors/neovim/neovide/default.nix b/pkgs/applications/editors/neovim/neovide/default.nix index a40ff76eea34c..e6443e21eac39 100644 --- a/pkgs/applications/editors/neovim/neovide/default.nix +++ b/pkgs/applications/editors/neovim/neovide/default.nix @@ -17,6 +17,8 @@ , makeFontsConf , libglvnd , libxkbcommon +, stdenv +, enableWayland ? stdenv.isLinux , wayland , xorg }: @@ -96,9 +98,18 @@ rustPlatform.buildRustPackage rec { })) ]; - postFixup = '' + postFixup = let + libPath = lib.makeLibraryPath ([ + libglvnd + libxkbcommon + xorg.libXcursor + xorg.libXext + xorg.libXrandr + xorg.libXi + ] ++ lib.optionals enableWayland [ wayland ]); + in '' wrapProgram $out/bin/neovide \ - --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd libxkbcommon wayland xorg.libXcursor xorg.libXext xorg.libXrandr xorg.libXi ]} + --prefix LD_LIBRARY_PATH : ${libPath} ''; postInstall = '' |