1 { lib, stdenv, fetchzip
2 , meson, ninja, pkg-config, python3, python3Packages, wayland-scanner
3 , libxkbcommon, mesa, pixman, xorg, wayland, gtest
11 url = "https://chromium.googlesource.com/chromiumos/platform2/+archive/${passthru.rev}/vm_tools/sommelier.tar.gz";
12 passthru.rev = "fd3798efe23f2edbc48f86f2fbd82ba5059fd875";
14 sha256 = "BmWZnMcK7IGaEAkVPulyb3hngsmuI0D1YtQEbqMjV5c=";
18 meson ninja pkg-config python3 python3Packages.jinja2 wayland-scanner
20 buildInputs = [ libxkbcommon mesa pixman wayland xorg.libxcb ];
23 patchShebangs gen-shim.py
27 nativeCheckInputs = [ gtest ];
30 rm $out/bin/sommelier_test # why does it install the test binary? o_O
33 passthru.updateScript = ./update.py;
36 homepage = "https://chromium.googlesource.com/chromiumos/platform2/+/refs/heads/main/vm_tools/sommelier/";
37 description = "Nested Wayland compositor with support for X11 forwarding";
38 maintainers = with maintainers; [ qyliss ];
39 license = licenses.bsd3;
40 platforms = platforms.linux;
41 mainProgram = "sommelier";