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 {
|
2023-04-12 12:48:02 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "uri";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "4.4.0";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-05 15:53:02 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
2024-06-20 14:57:18 +00:00
|
|
|
sha256 = "cdabaf6ef5cd2161e59cc7b74c6e4a68ecb80a9f4e96002e338e1b6bf17adec4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ 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 ];
|
|
|
|
};
|
|
|
|
}
|