1 { lib, stdenv, fetchFromGitHub, ocaml, findlib }:
3 assert lib.versionAtLeast (lib.getVersion ocaml) "4.03.0";
5 stdenv.mkDerivation rec {
6 pname = "ocaml${ocaml.version}-syslog";
9 src = fetchFromGitHub {
11 repo = "ocaml-syslog";
13 sha256 = "1kqpc55ppzv9n555qgqpda49n7nvkqimzisyjx2a7338r7q4r5bw";
16 nativeBuildInputs = [ ocaml findlib ];
19 buildFlags = [ "all" "opt" ];
21 createFindlibDestdir = true;
24 homepage = "https://github.com/rixed/ocaml-syslog";
25 description = "Simple wrapper to access the system logger from OCaml";
26 license = licenses.lgpl21Plus;
27 inherit (ocaml.meta) platforms;
28 maintainers = [ maintainers.rixed ];