tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.containers: init at 0.15
Ricardo M. Correia
10 years ago
26415f96
a1e96c7c
+49
2 changed files
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
containers
default.nix
top-level
all-packages.nix
+47
pkgs/development/ocaml-modules/containers/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub, ocaml, findlib, cppo, gen, sequence, qtest, ounit }:
2
2
+
3
3
+
let version = "0.15"; in
4
4
+
5
5
+
stdenv.mkDerivation {
6
6
+
name = "ocaml-containers-${version}";
7
7
+
8
8
+
src = fetchFromGitHub {
9
9
+
owner = "c-cube";
10
10
+
repo = "ocaml-containers";
11
11
+
rev = "${version}";
12
12
+
sha256 = "13mdl8jp4ymg1wip7lqmh4224x4jnji3frm1ik55vvm3ac8caqng";
13
13
+
};
14
14
+
15
15
+
buildInputs = [ ocaml findlib cppo gen sequence qtest ounit ];
16
16
+
17
17
+
configureFlags = [
18
18
+
"--enable-unix"
19
19
+
"--enable-thread"
20
20
+
"--enable-bigarray"
21
21
+
"--enable-advanced"
22
22
+
"--enable-tests"
23
23
+
"--disable-bench"
24
24
+
];
25
25
+
26
26
+
doCheck = true;
27
27
+
checkTarget = "test";
28
28
+
29
29
+
createFindlibDestdir = true;
30
30
+
31
31
+
meta = {
32
32
+
homepage = https://github.com/c-cube/ocaml-containers;
33
33
+
description = "A modular standard library focused on data structures";
34
34
+
longDescription = ''
35
35
+
Containers is a standard library (BSD license) focused on data structures,
36
36
+
combinators and iterators, without dependencies on unix. Every module is
37
37
+
independent and is prefixed with 'CC' in the global namespace. Some modules
38
38
+
extend the stdlib (e.g. CCList provides safe map/fold_right/append, and
39
39
+
additional functions on lists).
40
40
+
41
41
+
It also features optional libraries for dealing with strings, and
42
42
+
helpers for unix and threads.
43
43
+
'';
44
44
+
license = stdenv.lib.licenses.bsd2;
45
45
+
platforms = ocaml.meta.platforms;
46
46
+
};
47
47
+
}
+2
pkgs/top-level/all-packages.nix
···
4637
4637
4638
4638
config-file = callPackage ../development/ocaml-modules/config-file { };
4639
4639
4640
4640
+
containers = callPackage ../development/ocaml-modules/containers { };
4641
4641
+
4640
4642
cpdf = callPackage ../development/ocaml-modules/cpdf { };
4641
4643
4642
4644
cppo = callPackage ../development/tools/ocaml/cppo { };