Merge pull request #322396 from if-loop69420/add-xwayland-satellite

xwayland-satellite: init at 0.4
This commit is contained in:
Aleksana 2024-06-30 23:43:45 +08:00 committed by GitHub
commit 977fe3da10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 62 additions and 0 deletions

View File

@ -8424,6 +8424,12 @@
email = "astrid@astrid.tech";
name = "ifd3f";
};
if-loop69420 = {
github = "if-loop69420";
githubId = 81078181;
email = "j.sztavi@pm.me";
name = "Jeremy Sztavinovszki";
};
iFreilicht = {
github = "iFreilicht";
githubId = 9742635;

View File

@ -0,0 +1,56 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, xwayland
, xcb-util-cursor
, libxcb
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "xwayland-satellite";
version = "0.4";
src = fetchFromGitHub {
owner = "Supreeeme";
repo = "xwayland-satellite";
rev = "v${version}";
hash = "sha256-dwF9nI54a6Fo9XU5s4qmvMXSgCid3YQVGxch00qEMvI=";
};
cargoHash = "sha256-nKPSkHbh73xKWNpN/OpDmLnVmA3uygs3a+ejOhwU3yA=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
xwayland
libxcb
xcb-util-cursor
];
# disable Xwayland integration tests which need a running display server
checkFlags = [
"--exact"
"--skip=copy_from_wayland"
"--skip=copy_from_x11"
"--skip=input_focus"
"--skip=quick_delete"
"--skip=reparent"
"--skip=toplevel_flow"
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Rootless Xwayland integration to any Wayland compositor implementing xdg_wm_base";
homepage = "https://github.com/Supreeeme/xwayland-satellite";
license = licenses.mpl20;
maintainers = with maintainers; [ if-loop69420 ];
mainProgram = "xwayland-satellite";
platforms = platforms.linux;
};
}