1{ lib, buildDunePackage, fetchurl, ocaml, stdlib-shims, ounit }:
2
3buildDunePackage rec {
4 pname = "diet";
5 version = "0.4";
6
7 src = fetchurl {
8 url =
9 "https://github.com/mirage/ocaml-diet/releases/download/v${version}/diet-v${version}.tbz";
10 sha256 = "96acac2e4fdedb5f47dd8ad2562e723d85ab59cd1bd85554df21ec907b071741";
11 };
12
13 minimalOCamlVersion = "4.03";
14
15 propagatedBuildInputs = [ stdlib-shims ];
16
17 doCheck = lib.versionAtLeast ocaml.version "4.08";
18 checkInputs = [ ounit ];
19
20 meta = with lib; {
21 homepage = "https://github.com/mirage/ocaml-diet";
22 description = "Simple implementation of Discrete Interval Encoding Trees";
23 license = licenses.isc;
24 maintainers = with maintainers; [ ehmry ];
25 };
26}