depot/third_party/nixpkgs/pkgs/development/ocaml-modules/containers/default.nix
Default email 9543354213 Project import generated by Copybara.
GitOrigin-RevId: c21ba4f7bb4a3d621eb1d187e6b5e816bb85380c
2021-09-28 10:13:01 +02:00

42 lines
1.2 KiB
Nix

{ lib, fetchFromGitHub, buildDunePackage, ocaml
, dune-configurator
, seq
, gen, iter, ounit, qcheck, uutf
}:
buildDunePackage rec {
version = "3.4";
pname = "containers";
useDune2 = true;
src = fetchFromGitHub {
owner = "c-cube";
repo = "ocaml-containers";
rev = "v${version}";
sha256 = "0ixpy81p6rc3lq71djfndb2sg2hfj20j1jbzzrrmgqsysqdjsgzz";
};
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ seq ];
checkInputs = [ gen iter ounit qcheck uutf ];
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;
};
}