Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
2
3stdenv.mkDerivation rec {
4 pname = "ocaml-dolog";
5 version = "3.0";
6
7 src = fetchFromGitHub {
8 owner = "UnixJunkie";
9 repo = "dolog";
10 rev = "v${version}";
11 sha256 = "sha256-6wfqT5sqo4YA8XoHH3QhG6/TyzzXCzqjmnPuBArRoj8=";
12 };
13
14 nativeBuildInputs = [ ocaml findlib ocamlbuild ];
15
16 strictDeps = true;
17
18 createFindlibDestdir = true;
19
20 doCheck = true;
21 checkTarget = "test";
22
23 meta = {
24 homepage = "https://github.com/UnixJunkie/dolog";
25 description = "Minimalistic lazy logger in OCaml";
26 platforms = ocaml.meta.platforms or [ ];
27 license = lib.licenses.bsd3;
28 maintainers = with lib.maintainers; [ vbgl ];
29 };
30}