mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
|
, dune-configurator
|
|
, either, seq
|
|
, gen, iter, qcheck-core, uutf, yojson
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
version = "3.10";
|
|
pname = "containers";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "c-cube";
|
|
repo = "ocaml-containers";
|
|
rev = "v${version}";
|
|
hash = "sha256-eWmju4CD30+wX3sKI8rOUEbqbQygdOtc0U4sb9vYuNA=";
|
|
};
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
propagatedBuildInputs = [ either seq ];
|
|
|
|
nativeCheckInputs = [ gen iter qcheck-core uutf yojson ];
|
|
|
|
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;
|
|
};
|
|
}
|