about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/dolog/default.nix
blob: ceb028e0712a86d258d7a0b665ca2ad532258e79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchzip, ocaml, findlib }:

let version = "1.1"; in

stdenv.mkDerivation {
  name = "ocaml-dolog-${version}";
  src = fetchzip {
    url = "https://github.com/UnixJunkie/dolog/archive/v${version}.tar.gz";
    sha256 = "093lmprb1v2ran3pyymcdq80xnsgdz7h76g764xsy97dba5ik40n";
  };

  buildInputs = [ ocaml findlib ];

  createFindlibDestdir = true;

  doCheck = true;
  checkTarget = "test";

  meta = {
    homepage = https://github.com/UnixJunkie/dolog;
    description = "Minimalistic lazy logger in OCaml";
    platforms = ocaml.meta.platforms;
    license = stdenv.lib.licenses.bsd3;
    maintainers = with stdenv.lib.maintainers; [ vbgl ];
  };
}