ocamlPackages.batteries: 3.3.0 → 3.4.0

This commit is contained in:
Vincent Laporte 2021-12-16 10:37:15 +01:00 committed by Vincent Laporte
parent 56c2f8f1cc
commit 6a6c2992d4

View File

@ -1,15 +1,21 @@
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, qtest, num
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, num
, doCheck ? lib.versionAtLeast ocaml.version "4.08" && !stdenv.isAarch64
}:
let version = "3.3.0"; in
if !lib.versionAtLeast ocaml.version "4.02"
then throw "batteries is not available for OCaml ${ocaml.version}"
else
let version = "3.4.0"; in
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";
sha256 = "002pqkcg18zx59hsf172wg6s7lwsiagp5sfvf5yssp7xxal5jdgx";
src = fetchFromGitHub {
owner = "ocaml-batteries-team";
repo = "batteries-included";
rev = "v${version}";
sha256 = "sha256:1cd7475n1mxhq482aidmhh27mq5p2vmb8d9fkb1mlza9pz5z66yq";
};
buildInputs = [ ocaml findlib ocamlbuild ];
@ -30,7 +36,7 @@ stdenv.mkDerivation {
language.
'';
license = lib.licenses.lgpl21Plus;
platforms = ocaml.meta.platforms or [];
inherit (ocaml.meta) platforms;
maintainers = [
lib.maintainers.maggesi
];