about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/uri/default.nix
blob: f669a98c4defc551ce43f106639d694675e95fcf (plain) (blame)
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
{ lib, fetchurl, buildDunePackage, ounit
, angstrom, stringext
}:

buildDunePackage rec {
  minimumOCamlVersion = "4.03";
  pname = "uri";
  version = "4.2.0";

  useDune2 = true;

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

  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 ];
  };
}