2021-07-04 02:40:35 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ocamlPackages
|
2021-12-19 01:06:50 +00:00
|
|
|
, buildPackages
|
2021-07-04 02:40:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "wayland-proxy-virtwl";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "unstable-2021-12-05";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "talex5";
|
|
|
|
repo = pname;
|
2021-12-19 01:06:50 +00:00
|
|
|
rev = "d7f58d405514dd031f2f12e402c8c6a58e62a885";
|
|
|
|
sha256 = "0riwaqdlrx2gzkrb02v4zdl4ivpmz9g5w87lj3bhqs0l3s6c249s";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# no need to vendor
|
|
|
|
rm -r ocaml-wayland
|
|
|
|
'';
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
buildPackages.ocamlPackages.ppx_cstruct
|
|
|
|
];
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
buildInputs = with ocamlPackages; [
|
|
|
|
wayland
|
|
|
|
cmdliner
|
|
|
|
logs
|
2021-12-19 01:06:50 +00:00
|
|
|
cstruct-lwt
|
2021-07-04 02:40:35 +00:00
|
|
|
];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/talex5/wayland-virtwl-proxy";
|
|
|
|
description = "Proxy Wayland connections across a VM boundary";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|