2020-12-26 17:32:36 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, stdlib-shims, ounit }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "diet";
|
|
|
|
version = "0.4";
|
|
|
|
|
2021-02-13 10:05:22 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-12-26 17:32:36 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url =
|
|
|
|
"https://github.com/mirage/ocaml-diet/releases/download/v${version}/diet-v${version}.tbz";
|
|
|
|
sha256 = "96acac2e4fdedb5f47dd8ad2562e723d85ab59cd1bd85554df21ec907b071741";
|
|
|
|
};
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.03";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ stdlib-shims ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ ounit ];
|
2020-12-26 17:32:36 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|