at 23.11-beta 30 lines 772 B view raw
1{ lib, stdenv, fetchFromGitHub, ocaml, findlib }: 2 3assert lib.versionAtLeast (lib.getVersion ocaml) "4.03.0"; 4 5stdenv.mkDerivation rec { 6 pname = "ocaml${ocaml.version}-syslog"; 7 version = "1.5"; 8 9 src = fetchFromGitHub { 10 owner = "rixed"; 11 repo = "ocaml-syslog"; 12 rev = "v${version}"; 13 sha256 = "1kqpc55ppzv9n555qgqpda49n7nvkqimzisyjx2a7338r7q4r5bw"; 14 }; 15 16 nativeBuildInputs = [ ocaml findlib ]; 17 strictDeps = true; 18 19 buildFlags = [ "all" "opt" ]; 20 21 createFindlibDestdir = true; 22 23 meta = with lib; { 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 ]; 29 }; 30}