2021-04-17 00:35:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, xmlm
|
|
|
|
, lwt
|
|
|
|
, logs
|
|
|
|
, fmt
|
|
|
|
, cstruct
|
|
|
|
, cmdliner
|
|
|
|
, alcotest-lwt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "wayland";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.1";
|
2021-04-17 00:35:05 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-19 01:06:50 +00:00
|
|
|
url = "https://github.com/talex5/ocaml-wayland/releases/download/v${version}/wayland-${version}.tbz";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "0b7czgh08i6xcx3fsz6vd19sfyngwi0i27jdzg8cnjgrgwnagv6d";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lwt
|
|
|
|
logs
|
|
|
|
fmt
|
|
|
|
cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cmdliner
|
|
|
|
xmlm
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-04-17 00:35:05 +00:00
|
|
|
alcotest-lwt
|
|
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pure OCaml Wayland protocol library";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/talex5/ocaml-wayland";
|
2021-04-17 00:35:05 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "wayland-scanner-ocaml";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
}
|