2021-07-04 02:40:35 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ocamlPackages
|
2022-09-30 11:47:45 +00:00
|
|
|
, pkg-config
|
|
|
|
, libdrm
|
2023-08-22 20:05:09 +00:00
|
|
|
, unstableGitUpdater
|
2021-07-04 02:40:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "wayland-proxy-virtwl";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "unstable-2023-08-13";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "talex5";
|
|
|
|
repo = pname;
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "050c49a377808105b895e81e7e498f35cc151e58";
|
|
|
|
sha256 = "sha256-6YJv3CCED6LUSPFwYQyHUFkkvOWZGPNHVzw60b5F8+c=";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
minimalOCamlVersion = "4.12";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
nativeBuildInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
pkg-config
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
buildInputs = [ libdrm ] ++ (with ocamlPackages; [
|
|
|
|
dune-configurator
|
2023-02-09 11:40:11 +00:00
|
|
|
ppx_cstruct
|
2021-07-04 02:40:35 +00:00
|
|
|
wayland
|
|
|
|
cmdliner
|
|
|
|
logs
|
2021-12-19 01:06:50 +00:00
|
|
|
cstruct-lwt
|
2022-05-18 14:49:53 +00:00
|
|
|
ppx_cstruct
|
2022-09-30 11:47:45 +00:00
|
|
|
]);
|
2021-07-04 02:40:35 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
meta = with lib; {
|
2021-07-04 02:40:35 +00:00
|
|
|
homepage = "https://github.com/talex5/wayland-virtwl-proxy";
|
|
|
|
description = "Proxy Wayland connections across a VM boundary";
|
2023-03-08 16:32:21 +00:00
|
|
|
license = licenses.asl20;
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "wayland-proxy-virtwl";
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = [ maintainers.qyliss maintainers.sternenseemann ];
|
2023-03-08 16:32:21 +00:00
|
|
|
platforms = platforms.linux;
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
}
|