summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/diet/default.nix
blob: cd14d2a06af5ece8bc5e43b7b789999ba7186fa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildDunePackage, fetchurl, stdlib-shims, ounit }:

buildDunePackage rec {
  pname = "diet";
  version = "0.4";

  useDune2 = true;

  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;
  checkInputs = [ ounit ];

  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 ];
  };
}