nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 ocaml,
6 findlib,
7 ocamlbuild,
8}:
9
10stdenv.mkDerivation {
11 pname = "ocaml${ocaml.version}-erm_xml";
12 version = "0.3+20180112";
13
14 src = fetchFromGitHub {
15 owner = "hannesm";
16 repo = "xml";
17 rev = "bbabdade807d8281fc48806da054b70dfe482479";
18 sha256 = "sha256-OQdLTq9tJZc6XlcuPv2gxzYiQAUGd6AiBzfSi169XL0=";
19 };
20
21 nativeBuildInputs = [
22 ocaml
23 findlib
24 ocamlbuild
25 ];
26
27 strictDeps = true;
28
29 createFindlibDestdir = true;
30
31 meta = {
32 homepage = "https://github.com/hannesm/xml";
33 description = "XML Parser for discrete data";
34 platforms = ocaml.meta.platforms or [ ];
35 license = lib.licenses.bsd3;
36 broken = lib.versionOlder ocaml.version "4.02" || lib.versionAtLeast ocaml.version "5.0";
37 maintainers = with lib.maintainers; [ vbgl ];
38 };
39}