depot/third_party/nixpkgs/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix
Default email dae973cb59 Project import generated by Copybara.
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
2023-03-08 18:32:21 +02:00

50 lines
996 B
Nix

{ lib
, fetchFromGitHub
, ocamlPackages
, pkg-config
, libdrm
}:
ocamlPackages.buildDunePackage rec {
pname = "wayland-proxy-virtwl";
version = "unstable-2022-09-22";
src = fetchFromGitHub {
owner = "talex5";
repo = pname;
rev = "5940346db2a4427f21c7b30a2593b179af36a935";
sha256 = "0jnr5q52nb3yqr7ykvvb902xsad24cdi9imkslcsa5cnzb4095rw";
};
postPatch = ''
# no need to vendor
rm -r ocaml-wayland
'';
minimalOCamlVersion = "4.12";
strictDeps = true;
nativeBuildInputs = [
pkg-config
];
buildInputs = [ libdrm ] ++ (with ocamlPackages; [
dune-configurator
ppx_cstruct
wayland
cmdliner
logs
cstruct-lwt
ppx_cstruct
]);
doCheck = true;
meta = with lib; {
homepage = "https://github.com/talex5/wayland-virtwl-proxy";
description = "Proxy Wayland connections across a VM boundary";
license = licenses.asl20;
maintainers = [ maintainers.sternenseemann ];
platforms = platforms.linux;
};
}