2020-11-30 08:33:03 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, qtest, num }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
let version = "3.2.0"; in
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml${ocaml.version}-batteries-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml-batteries-team/batteries-included/releases/download/v${version}/batteries-${version}.tar.gz";
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "0a77njgc6c6kz4rpwqgmnii7f1na6hzsa55nqqm3dndhq9xh628w";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
checkInputs = [ qtest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ num ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = stdenv.lib.versionAtLeast ocaml.version "4.04" && !stdenv.isAarch64;
|
|
|
|
checkTarget = "test";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://batteries.forge.ocamlcore.org/";
|
|
|
|
description = "OCaml Batteries Included";
|
|
|
|
longDescription = ''
|
|
|
|
A community-driven effort to standardize on an consistent, documented,
|
|
|
|
and comprehensive development platform for the OCaml programming
|
|
|
|
language.
|
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.maggesi
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|