summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/uri/default.nix
blob: 86185efcab6aac05d89e5869f5bde2d28f71cd83 (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
{
  lib,
  fetchurl,
  buildDunePackage,
  ounit,
  angstrom,
  stringext,
}:

buildDunePackage rec {
  minimalOCamlVersion = "4.03";
  pname = "uri";
  version = "4.4.0";

  duneVersion = "3";

  src = fetchurl {
    url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
    sha256 = "cdabaf6ef5cd2161e59cc7b74c6e4a68ecb80a9f4e96002e338e1b6bf17adec4";
  };

  checkInputs = [ ounit ];
  propagatedBuildInputs = [
    angstrom
    stringext
  ];
  doCheck = true;

  meta = {
    homepage = "https://github.com/mirage/ocaml-uri";
    description = "RFC3986 URI parsing library for OCaml";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
  };
}