diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/stringext/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/stringext/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/stringext/default.nix b/pkgs/development/ocaml-modules/stringext/default.nix new file mode 100644 index 00000000000..3d440cf4895 --- /dev/null +++ b/pkgs/development/ocaml-modules/stringext/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchurl, ocaml, buildDunePackage, ounit, qtest +# Optionally enable tests; test script use OCaml-4.01+ features +, doCheck ? lib.versionAtLeast ocaml.version "4.08" +}: + +let version = "1.6.0"; in + +buildDunePackage { + pname = "stringext"; + version = version; + useDune2 = true; + src = fetchurl { + url = "https://github.com/rgrinberg/stringext/releases/download/${version}/stringext-${version}.tbz"; + sha256 = "1sh6nafi3i9773j5mlwwz3kxfzdjzsfqj2qibxhigawy5vazahfv"; + }; + + checkInputs = [ ounit qtest ]; + inherit doCheck; + + meta = { + homepage = "https://github.com/rgrinberg/stringext"; + description = "Extra string functions for OCaml"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ vbgl ]; + }; +} |