2021-07-04 02:40:35 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ocamlPackages
|
2022-09-30 11:47:45 +00:00
|
|
|
, pkg-config
|
|
|
|
, libdrm
|
2021-07-04 02:40:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "wayland-proxy-virtwl";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "unstable-2022-09-22";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "talex5";
|
|
|
|
repo = pname;
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "5940346db2a4427f21c7b30a2593b179af36a935";
|
|
|
|
sha256 = "0jnr5q52nb3yqr7ykvvb902xsad24cdi9imkslcsa5cnzb4095rw";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# no need to vendor
|
|
|
|
rm -r ocaml-wayland
|
|
|
|
'';
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
minimalOCamlVersion = "4.12";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
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-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;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
platforms = platforms.linux;
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
}
|