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