mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
xwayland: set meta.mainProgram
This commit is contained in:
parent
e33c2a5e4c
commit
6abae5cbb5
@ -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" ];
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -144,7 +144,7 @@ mkDerivation {
|
||||
];
|
||||
|
||||
CXXFLAGS = [
|
||||
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
|
||||
''-DNIXPKGS_XWAYLAND=\"${lib.getExe xwayland}\"''
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
@ -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 \
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user