nixpkgs/pkgs/development/ocaml-modules/containers/default.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

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