summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/ke/default.nix
blob: 21a8536afd51f1fa9085e4e4cb06351fbbe300ac (plain)
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
29
30
31
32
33
34
35
36
{
  lib,
  buildDunePackage,
  fetchurl,
  fmt,
  alcotest,
  bigstringaf,
}:

buildDunePackage (finalAttrs: {
  pname = "ke";
  version = "0.6";

  src = fetchurl {
    url = "https://github.com/mirage/ke/releases/download/v${finalAttrs.version}/ke-${finalAttrs.version}.tbz";
    sha256 = "sha256-YSFyB+IgCwSxd1lzZhD/kggmmmR/hUy1rnLNrA1nIwU=";
  };

  propagatedBuildInputs = [ fmt ];

  checkInputs = [
    alcotest
    bigstringaf
  ];
  doCheck = true;

  minimalOCamlVersion = "4.08";
  duneVersion = "3";

  meta = {
    description = "Fast implementation of queue in OCaml";
    homepage = "https://github.com/mirage/ke";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.vbgl ];
  };
})