Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1# Older version of extlib for Haxe 4.0 and 4.1.
2# May be replaceable by the next extlib + extlib-base64 release.
3{ stdenv, lib, fetchurl, ocaml, findlib, cppo
4# De facto, option minimal seems to be the default. See the README.
5, minimal ? true
6}:
7
8stdenv.mkDerivation rec {
9 pname = "ocaml${ocaml.version}-extlib";
10 version = "1.7.7";
11
12 src = fetchurl {
13 url = "https://ygrek.org/p/release/ocaml-extlib/extlib-${version}.tar.gz";
14 sha256 = "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1";
15 };
16
17 nativeBuildInputs = [ ocaml findlib cppo ];
18
19 strictDeps = true;
20
21 createFindlibDestdir = true;
22
23 makeFlags = lib.optional minimal "minimal=1";
24
25 meta = {
26 homepage = "https://github.com/ygrek/ocaml-extlib";
27 description = "Enhancements to the OCaml Standard Library modules";
28 license = lib.licenses.lgpl21Only;
29 inherit (ocaml.meta) platforms;
30 maintainers = [ lib.maintainers.sternenseemann ];
31 broken = lib.versionAtLeast ocaml.version "4.12";
32 };
33}