diff --git a/pkgs/applications/window-managers/weston/default.nix b/pkgs/applications/window-managers/weston/default.nix index e410453055c9..86b9a84267cc 100644 --- a/pkgs/applications/window-managers/weston/default.nix +++ b/pkgs/applications/window-managers/weston/default.nix @@ -52,7 +52,7 @@ stdenv.mkDerivation rec { (lib.mesonBool "test-junit-xml" false) (lib.mesonBool "xwayland" xwaylandSupport) ] ++ lib.optionals xwaylandSupport [ - (lib.mesonOption "xwayland-path" "${xwayland.out}/bin/Xwayland") + (lib.mesonOption "xwayland-path" (lib.getExe xwayland)) ]; passthru.providedSessions = [ "weston" ]; diff --git a/pkgs/desktops/gnome/core/mutter/43/default.nix b/pkgs/desktops/gnome/core/mutter/43/default.nix index 56bd69e499c5..6c91193851a9 100644 --- a/pkgs/desktops/gnome/core/mutter/43/default.nix +++ b/pkgs/desktops/gnome/core/mutter/43/default.nix @@ -74,7 +74,7 @@ stdenv.mkDerivation (finalAttrs: { "-Dinstalled_tests=false" # TODO: enable these "-Dwayland_eglstream=true" "-Dprofiler=true" - "-Dxwayland_path=${xwayland}/bin/Xwayland" + "-Dxwayland_path=${lib.getExe xwayland}" # This should be auto detected, but it looks like it manages a false # positive. "-Dxwayland_initfd=disabled" diff --git a/pkgs/desktops/gnome/core/mutter/default.nix b/pkgs/desktops/gnome/core/mutter/default.nix index ec3d69459043..3a2d8981b0b8 100644 --- a/pkgs/desktops/gnome/core/mutter/default.nix +++ b/pkgs/desktops/gnome/core/mutter/default.nix @@ -81,7 +81,7 @@ stdenv.mkDerivation (finalAttrs: { "-Dtests=false" "-Dwayland_eglstream=true" "-Dprofiler=true" - "-Dxwayland_path=${xwayland}/bin/Xwayland" + "-Dxwayland_path=${lib.getExe xwayland}" # This should be auto detected, but it looks like it manages a false # positive. "-Dxwayland_initfd=disabled" diff --git a/pkgs/desktops/plasma-5/kwin/default.nix b/pkgs/desktops/plasma-5/kwin/default.nix index 47ddcc95451c..2334604903fe 100644 --- a/pkgs/desktops/plasma-5/kwin/default.nix +++ b/pkgs/desktops/plasma-5/kwin/default.nix @@ -144,7 +144,7 @@ mkDerivation { ]; CXXFLAGS = [ - ''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"'' + ''-DNIXPKGS_XWAYLAND=\"${lib.getExe xwayland}\"'' ]; postInstall = '' diff --git a/pkgs/servers/mir/default.nix b/pkgs/servers/mir/default.nix index ea6976cdd6cd..98b5fd39e5f7 100644 --- a/pkgs/servers/mir/default.nix +++ b/pkgs/servers/mir/default.nix @@ -86,7 +86,7 @@ stdenv.mkDerivation rec { # Fix Xwayland default substituteInPlace src/miral/x11_support.cpp \ - --replace '/usr/bin/Xwayland' '${xwayland}/bin/Xwayland' + --replace '/usr/bin/Xwayland' '${lib.getExe xwayland}' # Fix paths for generating drm-formats substituteInPlace src/platform/graphics/CMakeLists.txt \ diff --git a/pkgs/servers/x11/xorg/xwayland.nix b/pkgs/servers/x11/xorg/xwayland.nix index a6c270182f75..f8d85231ca4f 100644 --- a/pkgs/servers/x11/xorg/xwayland.nix +++ b/pkgs/servers/x11/xorg/xwayland.nix @@ -108,6 +108,7 @@ stdenv.mkDerivation rec { description = "An X server for interfacing X11 apps with the Wayland protocol"; homepage = "https://wayland.freedesktop.org/xserver.html"; license = licenses.mit; + mainProgram = "Xwayland"; maintainers = with maintainers; [ emantor ]; platforms = platforms.linux; };