xwayland-satellite: correctly pass xwayland dependency in PATH

This commit is contained in:
sodiboo 2024-07-11 19:36:33 +02:00
parent 5fcc5458a3
commit b5228d2b3a

View File

@ -6,6 +6,7 @@
, xcb-util-cursor
, libxcb
, nix-update-script
, makeWrapper
}:
rustPlatform.buildRustPackage rec {
@ -24,10 +25,10 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
makeWrapper
];
buildInputs = [
xwayland
libxcb
xcb-util-cursor
];
@ -43,6 +44,11 @@ rustPlatform.buildRustPackage rec {
"--skip=toplevel_flow"
];
postInstall = ''
wrapProgram $out/bin/xwayland-satellite \
--prefix PATH : "${lib.makeBinPath [xwayland]}"
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {