2021-01-11 13:49:15 +01:00
|
|
|
{ stdenv, lib, fetchFromGitLab, ocaml, findlib
|
2018-07-09 19:15:42 +02:00
|
|
|
, sedlex, uunf, uutf
|
|
|
|
}:
|
|
|
|
|
2021-01-11 13:49:15 +01:00
|
|
|
if !lib.versionAtLeast ocaml.version "4.03"
|
2018-07-09 19:15:42 +02:00
|
|
|
then throw "iri is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.4.0";
|
|
|
|
name = "ocaml${ocaml.version}-iri-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "framagit.org";
|
|
|
|
owner = "zoggy";
|
|
|
|
repo = "ocaml-iri";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0fsmfmzmyggm0h77a7mb0n41vqi6q4ln1xzsv72zbvysa7l8w84q";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ sedlex uunf uutf ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IRI (RFC3987) native OCaml implementation";
|
2021-01-11 13:49:15 +01:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2018-07-09 19:15:42 +02:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|