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-06-05 15:53:02 +00:00
|
|
|
version = "125.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-06-05 15:53:02 +00:00
|
|
|
passthru.rev = "4445ac169a9e043fd260a835384aaa49c457c358";
|
2022-08-12 12:06:08 +00:00
|
|
|
stripRoot = false;
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "1PofODGZDknZpzXI1d3JcoNYz3IGfw32nm+SmUpeqb8=";
|
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
|
|
|
};
|
|
|
|
}
|