2021-06-29 13:39:21 +00:00
|
|
|
{ lib, fetchurl, ocaml, buildDunePackage, ounit, qtest
|
2015-07-01 18:19:50 +00:00
|
|
|
# Optionally enable tests; test script use OCaml-4.01+ features
|
2021-09-20 16:14:24 +00:00
|
|
|
, doCheck ? lib.versionAtLeast ocaml.version "4.08"
|
2015-07-01 18:19:50 +00:00
|
|
|
}:
|
2015-01-07 23:19:13 +00:00
|
|
|
|
2021-06-29 13:39:21 +00:00
|
|
|
let version = "1.6.0"; in
|
2015-01-07 23:19:13 +00:00
|
|
|
|
2021-06-29 13:39:21 +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";
|
2015-01-07 23:19:13 +00:00
|
|
|
};
|
|
|
|
|
2021-06-29 13:39:21 +00:00
|
|
|
checkInputs = [ ounit qtest ];
|
2015-07-01 18:19:50 +00:00
|
|
|
inherit doCheck;
|
2015-01-07 23:19:13 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rgrinberg/stringext";
|
2015-01-07 23:19:13 +00:00
|
|
|
description = "Extra string functions for OCaml";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-01-07 23:19:13 +00:00
|
|
|
};
|
|
|
|
}
|