2019-09-20 07:29:05 +02:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
2020-08-17 07:22:34 +02:00
|
|
|
, seq
|
|
|
|
, gen, iter, ounit, qcheck, uutf
|
2019-09-20 07:29:05 +02:00
|
|
|
}:
|
2016-02-17 18:54:58 +01:00
|
|
|
|
2019-09-20 07:29:05 +02:00
|
|
|
buildDunePackage rec {
|
2020-08-17 07:22:34 +02:00
|
|
|
version = "3.0";
|
2019-09-20 07:29:05 +02:00
|
|
|
pname = "containers";
|
2016-02-17 18:54:58 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "ocaml-containers";
|
2019-11-29 18:21:41 +01:00
|
|
|
rev = "v${version}";
|
2020-08-17 07:22:34 +02:00
|
|
|
sha256 = "0c75d5csgc68qqbsdz4279nlin111zrjbg4d47k32ska28myvpqn";
|
2016-02-17 18:54:58 +01:00
|
|
|
};
|
|
|
|
|
2020-08-17 07:22:34 +02:00
|
|
|
propagatedBuildInputs = [ seq ];
|
2016-02-17 18:54:58 +01:00
|
|
|
|
2020-08-17 07:22:34 +02:00
|
|
|
checkInputs = [ gen iter ounit qcheck uutf ];
|
2016-02-17 18:54:58 +01:00
|
|
|
|
2019-11-29 18:21:41 +01:00
|
|
|
doCheck = true;
|
2016-02-17 18:54:58 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/c-cube/ocaml-containers";
|
2016-02-17 18:54:58 +01: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 07:29:05 +02:00
|
|
|
license = lib.licenses.bsd2;
|
2016-02-17 18:54:58 +01:00
|
|
|
};
|
|
|
|
}
|