2019-09-20 05:29:05 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
2020-11-15 05:04:44 +00:00
|
|
|
, dune-configurator
|
2021-12-20 21:18:39 +00:00
|
|
|
, either, seq
|
2022-07-13 15:10:27 +00:00
|
|
|
, gen, iter, qcheck-core, uutf, yojson
|
2019-09-20 05:29:05 +00:00
|
|
|
}:
|
2016-02-17 17:54:58 +00:00
|
|
|
|
2019-09-20 05:29:05 +00:00
|
|
|
buildDunePackage rec {
|
2023-12-28 12:18:12 +00:00
|
|
|
version = "3.13.1";
|
2019-09-20 05:29:05 +00:00
|
|
|
pname = "containers";
|
2016-02-17 17:54:58 +00:00
|
|
|
|
2024-01-20 18:24:41 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
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}";
|
2023-12-28 12:18:12 +00:00
|
|
|
hash = "sha256-jkXh/dBRotWXvA77M/+tm39qsCiBsH/HSs+Y9D9QCek=";
|
2016-02-17 17:54:58 +00:00
|
|
|
};
|
|
|
|
|
2020-11-15 05:04:44 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2021-12-20 21:18:39 +00:00
|
|
|
propagatedBuildInputs = [ either seq ];
|
2016-02-17 17:54:58 +00:00
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ gen iter qcheck-core uutf yojson ];
|
2016-02-17 17:54:58 +00:00
|
|
|
|
2021-09-20 16:14:32 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2016-02-17 17:54:58 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00: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 05:29:05 +00:00
|
|
|
license = lib.licenses.bsd2;
|
2016-02-17 17:54:58 +00:00
|
|
|
};
|
|
|
|
}
|