summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/erm_xml/default.nix
blob: fa072f8bd1c1fec576412b14f650365cf9a0902a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:

if !lib.versionAtLeast ocaml.version "4.02"
then throw "erm_xml is not available for OCaml ${ocaml.version}"
else

stdenv.mkDerivation rec {
  pname = "ocaml${ocaml.version}-erm_xml";
  version = "0.3+20180112";

  src = fetchFromGitHub {
    owner = "hannesm";
    repo = "xml";
    rev = "bbabdade807d8281fc48806da054b70dfe482479";
    sha256 = "sha256-OQdLTq9tJZc6XlcuPv2gxzYiQAUGd6AiBzfSi169XL0=";
  };

  buildInputs = [ ocaml findlib ocamlbuild ];

  createFindlibDestdir = true;

  meta = {
    homepage = "https://github.com/hannesm/xml";
    description = "XML Parser for discrete data";
    platforms = ocaml.meta.platforms or [ ];
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ vbgl ];
  };
}