nixpkgs/pkgs/development/ocaml-modules/wayland/default.nix

50 lines
860 B
Nix
Raw Normal View History

2021-04-14 14:13:57 +00:00
{ lib
, buildDunePackage
, fetchurl
, xmlm
, lwt
, logs
, fmt
, cstruct
, cmdliner
, alcotest-lwt
}:
buildDunePackage rec {
pname = "wayland";
2022-09-29 12:29:41 +00:00
version = "1.1";
2021-04-14 14:13:57 +00:00
2022-09-29 12:29:41 +00:00
minimalOCamlVersion = "4.08";
2023-03-28 06:57:59 +00:00
duneVersion = "3";
2021-04-14 14:13:57 +00:00
src = fetchurl {
url = "https://github.com/talex5/ocaml-wayland/releases/download/v${version}/wayland-${version}.tbz";
2022-09-29 12:29:41 +00:00
sha256 = "0b7czgh08i6xcx3fsz6vd19sfyngwi0i27jdzg8cnjgrgwnagv6d";
2021-04-14 14:13:57 +00:00
};
propagatedBuildInputs = [
lwt
logs
fmt
cstruct
];
buildInputs = [
cmdliner
xmlm
];
checkInputs = [
2021-04-14 14:13:57 +00:00
alcotest-lwt
];
doCheck = true;
meta = {
description = "Pure OCaml Wayland protocol library";
homepage = "https://github.com/talex5/ocaml-wayland";
2021-04-14 14:13:57 +00:00
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.sternenseemann ];
mainProgram = "wayland-scanner-ocaml";
2021-04-14 14:13:57 +00:00
};
}