2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
2020-11-24 20:58:05 +00:00
|
|
|
, dune-configurator
|
2020-09-25 04:45:31 +00:00
|
|
|
, seq
|
|
|
|
, gen, iter, ounit, qcheck, uutf
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "3.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "containers";
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "ocaml-containers";
|
|
|
|
rev = "v${version}";
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "1m19cfcwks3xcj16nqldfb49dg0vdc7by1q1j8bpac3z2mjvks0l";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ seq ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
checkInputs = [ gen iter ounit qcheck uutf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/c-cube/ocaml-containers";
|
|
|
|
description = "A modular standard library focused on data structures";
|
|
|
|
longDescription = ''
|
|
|
|
Containers is a standard library (BSD license) focused on data structures,
|
|
|
|
combinators and iterators, without dependencies on unix. Every module is
|
|
|
|
independent and is prefixed with 'CC' in the global namespace. Some modules
|
|
|
|
extend the stdlib (e.g. CCList provides safe map/fold_right/append, and
|
|
|
|
additional functions on lists).
|
|
|
|
|
|
|
|
It also features optional libraries for dealing with strings, and
|
|
|
|
helpers for unix and threads.
|
|
|
|
'';
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|