dput-ng: fix eval (#364540)
[NixPkgs.git] / pkgs / development / ocaml-modules / wayland / default.nix
blob062774ad50781e662cde0215be9882b78f8923f0
2   lib,
3   buildDunePackage,
4   fetchurl,
5   xmlm,
6   eio,
7   logs,
8   fmt,
9   cstruct,
10   cmdliner,
11   alcotest,
12   eio_main,
15 buildDunePackage rec {
16   pname = "wayland";
17   version = "2.1";
19   minimalOCamlVersion = "5.0";
21   src = fetchurl {
22     url = "https://github.com/talex5/ocaml-wayland/releases/download/v${version}/wayland-${version}.tbz";
23     hash = "sha256-D/tTlYlU8e1O+HShIsBxqc8953rjQblj63tRPYAo88E=";
24   };
26   propagatedBuildInputs = [
27     eio
28     logs
29     fmt
30     cstruct
31   ];
33   buildInputs = [
34     cmdliner
35     xmlm
36   ];
38   checkInputs = [
39     alcotest
40     eio_main
41   ];
42   doCheck = true;
44   meta = {
45     description = "Pure OCaml Wayland protocol library";
46     homepage = "https://github.com/talex5/ocaml-wayland";
47     license = lib.licenses.asl20;
48     maintainers = [ lib.maintainers.sternenseemann ];
49     mainProgram = "wayland-scanner-ocaml";
50   };