depot/third_party/nixpkgs/pkgs/applications/window-managers/sommelier/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
1.3 KiB
Nix

{ lib, stdenv, fetchzip
, meson, ninja, pkg-config, python3, python3Packages, wayland-scanner
, libxkbcommon, mesa, pixman, xorg, wayland, gtest
}:
stdenv.mkDerivation {
pname = "sommelier";
version = "125.0";
src = fetchzip rec {
url = "https://chromium.googlesource.com/chromiumos/platform2/+archive/${passthru.rev}/vm_tools/sommelier.tar.gz";
passthru.rev = "4445ac169a9e043fd260a835384aaa49c457c358";
stripRoot = false;
sha256 = "1PofODGZDknZpzXI1d3JcoNYz3IGfw32nm+SmUpeqb8=";
};
nativeBuildInputs = [
meson ninja pkg-config python3 python3Packages.jinja2 wayland-scanner
];
buildInputs = [ libxkbcommon mesa pixman wayland xorg.libxcb ];
preConfigure = ''
patchShebangs gen-shim.py
'';
doCheck = true;
nativeCheckInputs = [ gtest ];
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;
mainProgram = "sommelier";
};
}