77eb94fa5c
* ocamlPackages.wayland: 1.1 -> 2.0 * wayland-proxy-virtwl: unstable-2023-08-13 -> unstable-2023-10-27
50 lines
851 B
Nix
50 lines
851 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, fetchurl
|
|
, xmlm
|
|
, eio
|
|
, logs
|
|
, fmt
|
|
, cstruct
|
|
, cmdliner
|
|
, alcotest
|
|
, eio_main
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "wayland";
|
|
version = "2.0";
|
|
|
|
minimalOCamlVersion = "5.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/talex5/ocaml-wayland/releases/download/v${version}/wayland-${version}.tbz";
|
|
hash = "sha256-iCG1zk1tA7gdGGt78c3sQi0NN9Fh3HsCP4cy7Y3pg0s=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
eio
|
|
logs
|
|
fmt
|
|
cstruct
|
|
];
|
|
|
|
buildInputs = [
|
|
cmdliner
|
|
xmlm
|
|
];
|
|
|
|
checkInputs = [
|
|
alcotest
|
|
eio_main
|
|
];
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Pure OCaml Wayland protocol library";
|
|
homepage = "https://github.com/talex5/ocaml-wayland";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
|
mainProgram = "wayland-scanner-ocaml";
|
|
};
|
|
}
|