2021-07-03 03:11:41 +00:00
|
|
|
{ lib, fetchurl, ocaml, buildDunePackage, ounit, qtest
|
2020-04-24 23:36:52 +00:00
|
|
|
# Optionally enable tests; test script use OCaml-4.01+ features
|
2021-09-28 08:13:01 +00:00
|
|
|
, doCheck ? lib.versionAtLeast ocaml.version "4.08"
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
let version = "1.6.0"; in
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
buildDunePackage {
|
|
|
|
pname = "stringext";
|
|
|
|
version = version;
|
|
|
|
useDune2 = true;
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/rgrinberg/stringext/releases/download/${version}/stringext-${version}.tbz";
|
|
|
|
sha256 = "1sh6nafi3i9773j5mlwwz3kxfzdjzsfqj2qibxhigawy5vazahfv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ ounit qtest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit doCheck;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/rgrinberg/stringext";
|
|
|
|
description = "Extra string functions for OCaml";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|