2021-04-17 00:35:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, xmlm
|
2023-11-16 04:20:00 +00:00
|
|
|
, eio
|
2021-04-17 00:35:05 +00:00
|
|
|
, logs
|
|
|
|
, fmt
|
|
|
|
, cstruct
|
|
|
|
, cmdliner
|
2023-11-16 04:20:00 +00:00
|
|
|
, alcotest
|
|
|
|
, eio_main
|
2021-04-17 00:35:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "wayland";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1";
|
2021-04-17 00:35:05 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
minimalOCamlVersion = "5.0";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-D/tTlYlU8e1O+HShIsBxqc8953rjQblj63tRPYAo88E=";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
eio
|
2021-04-17 00:35:05 +00:00
|
|
|
logs
|
|
|
|
fmt
|
|
|
|
cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cmdliner
|
|
|
|
xmlm
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
alcotest
|
|
|
|
eio_main
|
2021-04-17 00:35:05 +00:00
|
|
|
];
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|