2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }:
|
2015-02-18 21:10:43 +00:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if !lib.versionAtLeast ocaml.version "4.02"
|
2018-08-21 19:18:49 +01:00
|
|
|
then throw "erm_xml is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2018-09-21 18:02:48 +01:00
|
|
|
let version = "0.3+20180112"; in
|
2015-02-18 21:10:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-09-21 18:02:48 +01:00
|
|
|
name = "ocaml${ocaml.version}-erm_xml-${version}";
|
2015-02-18 21:10:43 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2018-09-21 18:02:48 +01:00
|
|
|
url = "https://github.com/hannesm/xml/archive/bbabdade807d8281fc48806da054b70dfe482479.tar.gz";
|
|
|
|
sha256 = "1gawpmg8plip0wia0xq60m024dn7l3ykwbjpbqx9f9bdmx74n1rr";
|
2015-02-18 21:10:43 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
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";
|
2015-12-24 17:49:07 +00: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
|
|
|
};
|
|
|
|
}
|