ocamlPackages.batteries: 3.6.0 → 3.7.1

This commit is contained in:
Vincent Laporte 2023-09-18 08:21:07 +02:00
parent 443321aed2
commit fefd0ab1c1
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,34 +1,25 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, qcheck, num, camlp-streams
{ stdenv, lib, fetchFromGitHub, buildDunePackage, ocaml, qtest, qcheck, num, camlp-streams
, doCheck ? lib.versionAtLeast ocaml.version "4.08" && !stdenv.isAarch64
}:
if lib.versionOlder ocaml.version "4.02"
then throw "batteries is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-batteries";
version = "3.6.0";
buildDunePackage rec {
pname = "batteries";
version = "3.7.1";
src = fetchFromGitHub {
owner = "ocaml-batteries-team";
repo = "batteries-included";
rev = "v${version}";
hash = "sha256-D/0h0/70V8jmzHIUR6i2sT2Jz9/+tfR2dQgp4Bxtimc=";
hash = "sha256-0ZCaJA9xowO9QxCWcyJ1zhqG7+GNkMYJt62+VPOFj4Y=";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
nativeCheckInputs = [ qtest ];
checkInputs = [ qcheck ];
propagatedBuildInputs = [ camlp-streams num ];
strictDeps = true;
inherit doCheck;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
homepage = "https://ocaml-batteries-team.github.io/batteries-included/hdoc2/";
description = "OCaml Batteries Included";
@ -38,7 +29,6 @@ stdenv.mkDerivation rec {
language.
'';
license = lib.licenses.lgpl21Plus;
inherit (ocaml.meta) platforms;
maintainers = [
lib.maintainers.maggesi
];