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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.0";
|
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";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-iCG1zk1tA7gdGGt78c3sQi0NN9Fh3HsCP4cy7Y3pg0s=";
|
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
|
|
|
};
|
|
|
|
}
|