2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, fetchzip
|
|
|
|
, meson, ninja, pkg-config, python3, python3Packages, wayland-scanner
|
2022-08-12 12:06:08 +00:00
|
|
|
, libxkbcommon, mesa, pixman, xorg, wayland, gtest
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "sommelier";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "126.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchzip rec {
|
|
|
|
url = "https://chromium.googlesource.com/chromiumos/platform2/+archive/${passthru.rev}/vm_tools/sommelier.tar.gz";
|
2024-07-27 06:49:29 +00:00
|
|
|
passthru.rev = "fd3798efe23f2edbc48f86f2fbd82ba5059fd875";
|
2022-08-12 12:06:08 +00:00
|
|
|
stripRoot = false;
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "BmWZnMcK7IGaEAkVPulyb3hngsmuI0D1YtQEbqMjV5c=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkg-config python3 python3Packages.jinja2 wayland-scanner
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
buildInputs = [ libxkbcommon mesa pixman wayland xorg.libxcb ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs gen-shim.py
|
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
doCheck = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ gtest ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm $out/bin/sommelier_test # why does it install the test binary? o_O
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = ./update.py;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://chromium.googlesource.com/chromiumos/platform2/+/refs/heads/main/vm_tools/sommelier/";
|
|
|
|
description = "Nested Wayland compositor with support for X11 forwarding";
|
|
|
|
maintainers = with maintainers; [ qyliss ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "sommelier";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|