2021-01-11 12:49:15 +00:00
|
|
|
{ lib, buildOcaml, ocaml, fetchurl }:
|
2018-07-23 07:22:46 +01:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-07-23 07:22:46 +01:00
|
|
|
then throw "estring is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
2016-06-01 16:04:14 +01:00
|
|
|
|
|
|
|
buildOcaml rec {
|
2021-10-31 12:35:20 +00:00
|
|
|
pname = "estring";
|
2016-06-01 16:04:14 +01:00
|
|
|
version = "1.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/1012/estring-${version}.tar.gz";
|
|
|
|
sha256 = "0b6znz5igm8pp28w4b7sgy82rpd9m5aw6ss933rfbw1mrh05gvcg";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://estring.forge.ocamlcore.org/";
|
2016-06-01 16:04:14 +01:00
|
|
|
description = "Extension for string literals";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|