nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildDunePackage,
5 ocaml,
6 ounit,
7 qtest,
8 qcheck,
9 num,
10 camlp-streams,
11 doCheck ? lib.versionAtLeast ocaml.version "4.08",
12}:
13
14buildDunePackage (finalAttrs: {
15 pname = "batteries";
16 version = "3.10.0";
17
18 minimalOCamlVersion = "4.05";
19
20 src = fetchFromGitHub {
21 owner = "ocaml-batteries-team";
22 repo = "batteries-included";
23 tag = "v${finalAttrs.version}";
24 hash = "sha256-cD0O4kEDE58yCYnUuS83O1CJNHJuCGVhvKJSKQeQGkc=";
25 };
26
27 nativeCheckInputs = [ qtest ];
28 checkInputs = [
29 ounit
30 qcheck
31 ];
32 propagatedBuildInputs = [
33 camlp-streams
34 num
35 ];
36
37 inherit doCheck;
38 checkTarget = "test";
39
40 meta = {
41 homepage = "https://ocaml-batteries-team.github.io/batteries-included/hdoc2/";
42 description = "OCaml Batteries Included";
43 longDescription = ''
44 A community-driven effort to standardize on an consistent, documented,
45 and comprehensive development platform for the OCaml programming
46 language.
47 '';
48 license = lib.licenses.lgpl21Plus;
49 };
50})