2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ounit
|
2020-12-09 12:39:15 +00:00
|
|
|
, angstrom, stringext
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-05-03 17:38:23 +00:00
|
|
|
minimumOCamlVersion = "4.03";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "uri";
|
2021-06-01 10:57:12 +00:00
|
|
|
version = "4.2.0";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
2021-06-01 10:57:12 +00:00
|
|
|
sha256 = "0szifda6yism5vn5jdizkha3ad0xk6zw4xgfl8g77dnv83ci7h65";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ ounit ];
|
2020-12-09 12:39:15 +00:00
|
|
|
propagatedBuildInputs = [ angstrom stringext ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|