2021-12-19 01:06:50 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
if lib.versionOlder ocaml.version "4.02"
|
2023-11-16 04:20:00 +00:00
|
|
|
|| lib.versionAtLeast ocaml.version "5.0"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "erm_xml is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-erm_xml";
|
|
|
|
version = "0.3+20180112";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hannesm";
|
|
|
|
repo = "xml";
|
|
|
|
rev = "bbabdade807d8281fc48806da054b70dfe482479";
|
|
|
|
sha256 = "sha256-OQdLTq9tJZc6XlcuPv2gxzYiQAUGd6AiBzfSi169XL0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/hannesm/xml";
|
|
|
|
description = "XML Parser for discrete data";
|
2021-12-19 01:06:50 +00:00
|
|
|
platforms = ocaml.meta.platforms or [ ];
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|