summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/stringext/default.nix
blob: 830185e89054c37110b87aae45231561491aba79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  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;
  duneVersion = "3";
  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 ];
  };
}