2019-12-09 11:29:01 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, astring, base64, digestif, fmt, jsonm, logs, ocaml_lwt, ocamlgraph, uri
|
|
|
|
, alcotest, hex
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
|
|
|
pname = "irmin";
|
2020-04-13 17:34:45 +02:00
|
|
|
version = "2.1.0";
|
2019-12-09 11:29:01 +01:00
|
|
|
|
2020-04-13 17:34:45 +02:00
|
|
|
minimumOCamlVersion = "4.07";
|
2019-12-09 11:29:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/irmin/releases/download/${version}/irmin-${version}.tbz";
|
2020-04-13 17:34:45 +02:00
|
|
|
sha256 = "1ji8r7zbdmhbk8r8w2hskd9z7pnvirzbhincfxndxgdaxbfkff5g";
|
2019-12-09 11:29:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|