mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{ stdenv, lib, fetchFromGitHub, buildDunePackage, ocaml, qtest, qcheck, num, camlp-streams
|
|
, doCheck ? lib.versionAtLeast ocaml.version "4.08"
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "batteries";
|
|
version = "3.8.0";
|
|
|
|
minimalOCamlVersion = "4.05";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocaml-batteries-team";
|
|
repo = "batteries-included";
|
|
rev = "v${version}";
|
|
hash = "sha256-Ixqfo2F4VftrIVF8oBOx/rSiJZppiwXOjVQ3Tcelxac=";
|
|
};
|
|
|
|
nativeCheckInputs = [ qtest ];
|
|
checkInputs = [ qcheck ];
|
|
propagatedBuildInputs = [ camlp-streams num ];
|
|
|
|
inherit doCheck;
|
|
checkTarget = "test";
|
|
|
|
meta = {
|
|
homepage = "https://ocaml-batteries-team.github.io/batteries-included/hdoc2/";
|
|
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;
|
|
maintainers = [
|
|
lib.maintainers.maggesi
|
|
];
|
|
};
|
|
}
|