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