Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, buildDunePackage, ocaml
2, dune-configurator
3, either, seq
4, gen, iter, qcheck-core, uutf, yojson
5}:
6
7buildDunePackage rec {
8 version = "3.11";
9 pname = "containers";
10
11 duneVersion = "3";
12
13 src = fetchFromGitHub {
14 owner = "c-cube";
15 repo = "ocaml-containers";
16 rev = "v${version}";
17 hash = "sha256-tGAsg98/T6VKvG95I4qioabWM3TEKrDKlsrfUJqxCyM=";
18 };
19
20 buildInputs = [ dune-configurator ];
21 propagatedBuildInputs = [ either seq ];
22
23 checkInputs = [ gen iter qcheck-core uutf yojson ];
24
25 doCheck = lib.versionAtLeast ocaml.version "4.08";
26
27 meta = {
28 homepage = "https://github.com/c-cube/ocaml-containers";
29 description = "A modular standard library focused on data structures";
30 longDescription = ''
31 Containers is a standard library (BSD license) focused on data structures,
32 combinators and iterators, without dependencies on unix. Every module is
33 independent and is prefixed with 'CC' in the global namespace. Some modules
34 extend the stdlib (e.g. CCList provides safe map/fold_right/append, and
35 additional functions on lists).
36
37 It also features optional libraries for dealing with strings, and
38 helpers for unix and threads.
39 '';
40 license = lib.licenses.bsd2;
41 };
42}