2021-10-30 21:51:02 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
|
2015-02-18 21:10:43 +00:00
|
|
|
|
2022-04-25 21:35:24 +01:00
|
|
|
if lib.versionOlder ocaml.version "4.02"
|
2018-08-21 19:18:49 +01:00
|
|
|
then throw "erm_xml is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2021-10-30 21:51:02 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-erm_xml";
|
|
|
|
version = "0.3+20180112";
|
2015-02-18 21:10:43 +00:00
|
|
|
|
2021-10-30 21:51:02 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hannesm";
|
|
|
|
repo = "xml";
|
|
|
|
rev = "bbabdade807d8281fc48806da054b70dfe482479";
|
|
|
|
sha256 = "sha256-OQdLTq9tJZc6XlcuPv2gxzYiQAUGd6AiBzfSi169XL0=";
|
2015-02-18 21:10:43 +00:00
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2015-02-18 21:10:43 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/hannesm/xml";
|
2015-02-18 21:10:43 +00:00
|
|
|
description = "XML Parser for discrete data";
|
2021-10-30 21:51:02 +01:00
|
|
|
platforms = ocaml.meta.platforms or [ ];
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-02-18 21:10:43 +00:00
|
|
|
};
|
|
|
|
}
|