2024-07-27 06:49:29 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, qtest, qcheck, num, camlp-streams
|
2023-10-09 19:29:22 +00:00
|
|
|
, doCheck ? lib.versionAtLeast ocaml.version "4.08"
|
2021-09-28 08:13:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "batteries";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.8.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.05";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml-batteries-team";
|
|
|
|
repo = "batteries-included";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Ixqfo2F4VftrIVF8oBOx/rSiJZppiwXOjVQ3Tcelxac=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ qtest ];
|
|
|
|
checkInputs = [ qcheck ];
|
2022-12-17 10:02:37 +00:00
|
|
|
propagatedBuildInputs = [ camlp-streams num ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
inherit doCheck;
|
2020-09-25 04:45:31 +00:00
|
|
|
checkTarget = "test";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://ocaml-batteries-team.github.io/batteries-included/hdoc2/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "OCaml Batteries Included";
|
|
|
|
longDescription = ''
|
|
|
|
A community-driven effort to standardize on an consistent, documented,
|
|
|
|
and comprehensive development platform for the OCaml programming
|
|
|
|
language.
|
|
|
|
'';
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [
|
2021-01-15 22:18:51 +00:00
|
|
|
lib.maintainers.maggesi
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|