Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
2
3if lib.versionOlder ocaml.version "4.02"
4then throw "erm_xml is not available for OCaml ${ocaml.version}"
5else
6
7stdenv.mkDerivation rec {
8 pname = "ocaml${ocaml.version}-erm_xml";
9 version = "0.3+20180112";
10
11 src = fetchFromGitHub {
12 owner = "hannesm";
13 repo = "xml";
14 rev = "bbabdade807d8281fc48806da054b70dfe482479";
15 sha256 = "sha256-OQdLTq9tJZc6XlcuPv2gxzYiQAUGd6AiBzfSi169XL0=";
16 };
17
18 nativeBuildInputs = [ ocaml findlib ocamlbuild ];
19
20 strictDeps = true;
21
22 createFindlibDestdir = true;
23
24 meta = {
25 homepage = "https://github.com/hannesm/xml";
26 description = "XML Parser for discrete data";
27 platforms = ocaml.meta.platforms or [ ];
28 license = lib.licenses.bsd3;
29 maintainers = with lib.maintainers; [ vbgl ];
30 };
31}