2019-09-20 06:29:05 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
|
|
|
, iter, result, uchar
|
|
|
|
, gen, mdx, ounit, qcheck, uutf
|
|
|
|
}:
|
2016-02-17 17:54:58 +00:00
|
|
|
|
2019-09-20 06:29:05 +01:00
|
|
|
buildDunePackage rec {
|
2019-11-29 17:21:41 +00:00
|
|
|
version = "2.7";
|
2019-09-20 06:29:05 +01:00
|
|
|
pname = "containers";
|
2016-02-17 17:54:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "ocaml-containers";
|
2019-11-29 17:21:41 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1nsxfgn1g1vpqihb9gd6gsab0bcm70nf9z84cp441c8wsc57hi6a";
|
2016-02-17 17:54:58 +00:00
|
|
|
};
|
|
|
|
|
2019-09-20 06:29:05 +01:00
|
|
|
buildInputs = [ iter ];
|
2016-02-17 17:54:58 +00:00
|
|
|
|
2019-12-07 06:54:48 +00:00
|
|
|
checkInputs = lib.optionals doCheck [ gen mdx.bin ounit qcheck uutf ];
|
2016-02-17 17:54:58 +00:00
|
|
|
|
2019-09-20 06:29:05 +01:00
|
|
|
propagatedBuildInputs = [ result uchar ];
|
2016-02-17 17:54:58 +00:00
|
|
|
|
2019-11-29 17:21:41 +00:00
|
|
|
doCheck = true;
|
2016-02-17 17:54:58 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/c-cube/ocaml-containers";
|
2016-02-17 17:54:58 +00:00
|
|
|
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.
|
|
|
|
'';
|
2019-09-20 06:29:05 +01:00
|
|
|
license = lib.licenses.bsd2;
|
2016-02-17 17:54:58 +00:00
|
|
|
};
|
|
|
|
}
|