depot/third_party/nixpkgs/pkgs/development/ocaml-modules/batteries/default.nix
Default email 9543354213 Project import generated by Copybara.
GitOrigin-RevId: c21ba4f7bb4a3d621eb1d187e6b5e816bb85380c
2021-09-28 10:13:01 +02:00

38 lines
1.1 KiB
Nix

{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, qtest, num
, doCheck ? lib.versionAtLeast ocaml.version "4.08" && !stdenv.isAarch64
}:
let version = "3.3.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";
};
buildInputs = [ ocaml findlib ocamlbuild ];
checkInputs = [ qtest ];
propagatedBuildInputs = [ num ];
inherit doCheck;
checkTarget = "test";
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 = lib.licenses.lgpl21Plus;
platforms = ocaml.meta.platforms or [];
maintainers = [
lib.maintainers.maggesi
];
};
}