2019-09-20 08:29:05 +03:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
2020-11-15 08:04:44 +03:00
|
|
|
, dune-configurator
|
2021-12-21 00:18:39 +03:00
|
|
|
, either, seq
|
2022-07-13 18:10:27 +03:00
|
|
|
, gen, iter, qcheck-core, uutf, yojson
|
2019-09-20 08:29:05 +03:00
|
|
|
}:
|
2016-02-17 20:54:58 +03:00
|
|
|
|
2019-09-20 08:29:05 +03:00
|
|
|
buildDunePackage rec {
|
2022-12-30 12:36:37 +03:00
|
|
|
version = "3.10";
|
2019-09-20 08:29:05 +03:00
|
|
|
pname = "containers";
|
2016-02-17 20:54:58 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "ocaml-containers";
|
2019-11-29 20:21:41 +03:00
|
|
|
rev = "v${version}";
|
2022-12-30 12:36:37 +03:00
|
|
|
hash = "sha256-eWmju4CD30+wX3sKI8rOUEbqbQygdOtc0U4sb9vYuNA=";
|
2016-02-17 20:54:58 +03:00
|
|
|
};
|
|
|
|
|
2020-11-15 08:04:44 +03:00
|
|
|
buildInputs = [ dune-configurator ];
|
2021-12-21 00:18:39 +03:00
|
|
|
propagatedBuildInputs = [ either seq ];
|
2016-02-17 20:54:58 +03:00
|
|
|
|
2023-01-21 15:00:00 +03:00
|
|
|
nativeCheckInputs = [ gen iter qcheck-core uutf yojson ];
|
2016-02-17 20:54:58 +03:00
|
|
|
|
2021-09-20 19:14:32 +03:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2016-02-17 20:54:58 +03:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/c-cube/ocaml-containers";
|
2016-02-17 20:54:58 +03: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 08:29:05 +03:00
|
|
|
license = lib.licenses.bsd2;
|
2016-02-17 20:54:58 +03:00
|
|
|
};
|
|
|
|
}
|