nixpkgs/pkgs/development/ocaml-modules/containers/default.nix
Vincent Laporte 424c20414a
ocamlPackages.containers: 1.4 → 2.6.1
ocamlPackages.sequence/iter: 1.1 → 1.2.1

Ensures compatibility with OCaml 4.08
2019-09-20 05:29:05 +00:00

41 lines
1.2 KiB
Nix

{ lib, fetchFromGitHub, buildDunePackage, ocaml
, iter, result, uchar
, gen, mdx, ounit, qcheck, uutf
}:
buildDunePackage rec {
version = "2.6.1";
pname = "containers";
src = fetchFromGitHub {
owner = "c-cube";
repo = "ocaml-containers";
rev = version;
sha256 = "02iq01pq6047hab5s8zpprwr21cygvzfcfj2lpsyj823f28crhmv";
};
buildInputs = [ iter ];
checkInputs = lib.optionals doCheck [ gen mdx ounit qcheck uutf ];
propagatedBuildInputs = [ result uchar ];
doCheck = !lib.versionAtLeast ocaml.version "4.08";
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;
};
}