2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocaml, findlib }:
|
2019-03-13 14:23:19 +00:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
assert lib.versionAtLeast (lib.getVersion ocaml) "4.03.0";
|
2019-03-13 14:23:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-syslog";
|
|
|
|
version = "1.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rixed";
|
|
|
|
repo = "ocaml-syslog";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1kqpc55ppzv9n555qgqpda49n7nvkqimzisyjx2a7338r7q4r5bw";
|
|
|
|
};
|
|
|
|
|
2021-08-14 12:00:00 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
|
|
strictDeps = true;
|
2019-03-13 14:23:19 +00:00
|
|
|
|
2019-03-27 12:34:43 +00:00
|
|
|
buildFlags = [ "all" "opt" ];
|
|
|
|
|
2019-03-13 14:23:19 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rixed/ocaml-syslog";
|
2019-03-13 14:23:19 +00:00
|
|
|
description = "Simple wrapper to access the system logger from OCaml";
|
|
|
|
license = licenses.lgpl21Plus;
|
2022-05-10 17:36:58 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2019-03-13 14:23:19 +00:00
|
|
|
maintainers = [ maintainers.rixed ];
|
|
|
|
};
|
|
|
|
}
|