lol
at 23.11-beta 40 lines 1.2 kB view raw
1{ lib, fetchFromGitHub, buildDunePackage, ocaml 2, dune-configurator 3, either, seq 4, gen, iter, qcheck-core, uutf, yojson 5}: 6 7buildDunePackage rec { 8 version = "3.12"; 9 pname = "containers"; 10 11 src = fetchFromGitHub { 12 owner = "c-cube"; 13 repo = "ocaml-containers"; 14 rev = "v${version}"; 15 hash = "sha256-15Wd6k/NvjAvTmxlPlZPClODBtFXM6FG3VxniC66u88="; 16 }; 17 18 buildInputs = [ dune-configurator ]; 19 propagatedBuildInputs = [ either seq ]; 20 21 checkInputs = [ gen iter qcheck-core uutf yojson ]; 22 23 doCheck = lib.versionAtLeast ocaml.version "4.08"; 24 25 meta = { 26 homepage = "https://github.com/c-cube/ocaml-containers"; 27 description = "A modular standard library focused on data structures"; 28 longDescription = '' 29 Containers is a standard library (BSD license) focused on data structures, 30 combinators and iterators, without dependencies on unix. Every module is 31 independent and is prefixed with 'CC' in the global namespace. Some modules 32 extend the stdlib (e.g. CCList provides safe map/fold_right/append, and 33 additional functions on lists). 34 35 It also features optional libraries for dealing with strings, and 36 helpers for unix and threads. 37 ''; 38 license = lib.licenses.bsd2; 39 }; 40}