lol
1{ lib, buildOcaml, ocaml, fetchurl }:
2
3if lib.versionAtLeast ocaml.version "4.06"
4then throw "estring is not available for OCaml ${ocaml.version}"
5else
6
7buildOcaml rec {
8 pname = "estring";
9 version = "1.3";
10
11 src = fetchurl {
12 url = "https://forge.ocamlcore.org/frs/download.php/1012/estring-${version}.tar.gz";
13 sha256 = "0b6znz5igm8pp28w4b7sgy82rpd9m5aw6ss933rfbw1mrh05gvcg";
14 };
15
16 meta = with lib; {
17 homepage = "http://estring.forge.ocamlcore.org/";
18 description = "Extension for string literals";
19 license = licenses.bsd3;
20 };
21}