2023-05-12 23:09:22 +02:00
|
|
|
{ lib, buildDunePackage, fetchurl, ocaml, stdlib-shims, ounit }:
|
2020-12-26 18:32:36 +01:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "diet";
|
|
|
|
version = "0.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url =
|
|
|
|
"https://github.com/mirage/ocaml-diet/releases/download/v${version}/diet-v${version}.tbz";
|
|
|
|
sha256 = "96acac2e4fdedb5f47dd8ad2562e723d85ab59cd1bd85554df21ec907b071741";
|
|
|
|
};
|
|
|
|
|
2023-05-12 23:09:22 +02:00
|
|
|
minimalOCamlVersion = "4.03";
|
2020-12-26 18:32:36 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ stdlib-shims ];
|
|
|
|
|
2023-05-12 23:09:22 +02:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2022-03-01 16:42:22 +01:00
|
|
|
checkInputs = [ ounit ];
|
2020-12-26 18:32:36 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mirage/ocaml-diet";
|
|
|
|
description = "Simple implementation of Discrete Interval Encoding Trees";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ ehmry ];
|
|
|
|
};
|
|
|
|
}
|