Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 49 lines 860 B view raw
1{ lib 2, buildDunePackage 3, fetchurl 4, xmlm 5, lwt 6, logs 7, fmt 8, cstruct 9, cmdliner 10, alcotest-lwt 11}: 12 13buildDunePackage rec { 14 pname = "wayland"; 15 version = "1.1"; 16 17 minimalOCamlVersion = "4.08"; 18 duneVersion = "3"; 19 20 src = fetchurl { 21 url = "https://github.com/talex5/ocaml-wayland/releases/download/v${version}/wayland-${version}.tbz"; 22 sha256 = "0b7czgh08i6xcx3fsz6vd19sfyngwi0i27jdzg8cnjgrgwnagv6d"; 23 }; 24 25 propagatedBuildInputs = [ 26 lwt 27 logs 28 fmt 29 cstruct 30 ]; 31 32 buildInputs = [ 33 cmdliner 34 xmlm 35 ]; 36 37 checkInputs = [ 38 alcotest-lwt 39 ]; 40 doCheck = true; 41 42 meta = { 43 description = "Pure OCaml Wayland protocol library"; 44 homepage = "https://github.com/talex5/ocaml-wayland"; 45 license = lib.licenses.asl20; 46 maintainers = [ lib.maintainers.sternenseemann ]; 47 mainProgram = "wayland-scanner-ocaml"; 48 }; 49}