summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/irmin/default.nix
blob: cba6775916760332a9404819836d69e5869334aa (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
27
28
29
30
31
{ lib, fetchurl, buildDunePackage
, astring, base64, digestif, fmt, jsonm, logs, ocaml_lwt, ocamlgraph, uri
, alcotest, hex
}:

buildDunePackage rec {

  pname = "irmin";
  version = "2.1.0";

  minimumOCamlVersion = "4.07";

  src = fetchurl {
    url = "https://github.com/mirage/irmin/releases/download/${version}/irmin-${version}.tbz";
    sha256 = "1ji8r7zbdmhbk8r8w2hskd9z7pnvirzbhincfxndxgdaxbfkff5g";
  };

  propagatedBuildInputs = [ astring base64 digestif fmt jsonm logs ocaml_lwt ocamlgraph uri ];

  checkInputs = lib.optionals doCheck [ alcotest hex ];

  doCheck = true;

  meta = {
    homepage = "https://irmin.org/";
    description = "A distributed database built on the same principles as Git";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
  };

}