Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5 xmlm, 6 eio, 7 logs, 8 fmt, 9 cstruct, 10 cmdliner, 11 alcotest, 12 eio_main, 13}: 14 15buildDunePackage rec { 16 pname = "wayland"; 17 version = "2.2"; 18 19 minimalOCamlVersion = "5.0"; 20 21 src = fetchurl { 22 url = "https://github.com/talex5/ocaml-wayland/releases/download/v${version}/wayland-${version}.tbz"; 23 hash = "sha256-D4ggYKTP6UJO05dna44qqpMdhGEL6ynLLsnDVdGBliU="; 24 }; 25 26 propagatedBuildInputs = [ 27 eio 28 logs 29 fmt 30 cstruct 31 ]; 32 33 buildInputs = [ 34 cmdliner 35 xmlm 36 ]; 37 38 checkInputs = [ 39 alcotest 40 eio_main 41 ]; 42 doCheck = true; 43 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 }; 51}