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