ocamlPackages.containers: init at 0.15

This commit is contained in:
Ricardo M. Correia 2016-02-17 18:54:58 +01:00
parent a1e96c7cbe
commit 26415f963a
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, cppo, gen, sequence, qtest, ounit }:
let version = "0.15"; in
stdenv.mkDerivation {
name = "ocaml-containers-${version}";
src = fetchFromGitHub {
owner = "c-cube";
repo = "ocaml-containers";
rev = "${version}";
sha256 = "13mdl8jp4ymg1wip7lqmh4224x4jnji3frm1ik55vvm3ac8caqng";
};
buildInputs = [ ocaml findlib cppo gen sequence qtest ounit ];
configureFlags = [
"--enable-unix"
"--enable-thread"
"--enable-bigarray"
"--enable-advanced"
"--enable-tests"
"--disable-bench"
];
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
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 = stdenv.lib.licenses.bsd2;
platforms = ocaml.meta.platforms;
};
}

View File

@ -4637,6 +4637,8 @@ let
config-file = callPackage ../development/ocaml-modules/config-file { };
containers = callPackage ../development/ocaml-modules/containers { };
cpdf = callPackage ../development/ocaml-modules/cpdf { };
cppo = callPackage ../development/tools/ocaml/cppo { };