2021-04-14 14:13:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, xmlm
|
|
|
|
, lwt
|
|
|
|
, logs
|
|
|
|
, fmt
|
|
|
|
, cstruct
|
|
|
|
, cmdliner
|
|
|
|
, alcotest-lwt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "wayland";
|
2022-09-29 12:29:41 +00:00
|
|
|
version = "1.1";
|
2021-04-14 14:13:57 +00:00
|
|
|
|
2022-09-29 12:29:41 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-28 06:57:59 +00:00
|
|
|
duneVersion = "3";
|
2021-04-14 14:13:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-15 06:53:29 +00:00
|
|
|
url = "https://github.com/talex5/ocaml-wayland/releases/download/v${version}/wayland-${version}.tbz";
|
2022-09-29 12:29:41 +00:00
|
|
|
sha256 = "0b7czgh08i6xcx3fsz6vd19sfyngwi0i27jdzg8cnjgrgwnagv6d";
|
2021-04-14 14:13:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lwt
|
|
|
|
logs
|
|
|
|
fmt
|
|
|
|
cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cmdliner
|
|
|
|
xmlm
|
|
|
|
];
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [
|
2021-04-14 14:13:57 +00:00
|
|
|
alcotest-lwt
|
|
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pure OCaml Wayland protocol library";
|
2022-05-13 23:48:49 +00:00
|
|
|
homepage = "https://github.com/talex5/ocaml-wayland";
|
2021-04-14 14:13:57 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
2022-05-13 23:48:49 +00:00
|
|
|
mainProgram = "wayland-scanner-ocaml";
|
2021-04-14 14:13:57 +00:00
|
|
|
};
|
|
|
|
}
|