blob: ed8634e7ff5850f2d378c67714dabfe82de26ac9 (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
stdenv,
fetchurl,
ocaml,
findlib,
ocamlbuild,
topkg,
}:
stdenv.mkDerivation (finalAttrs: {
name = "ocaml${ocaml.version}-${finalAttrs.pname}-${finalAttrs.version}";
pname = "xmlm";
version = "1.4.0";
src = fetchurl {
url = "https://erratique.ch/software/xmlm/releases/xmlm-${finalAttrs.version}.tbz";
sha256 = "sha256-CRJSJY490WMgw85N2yG81X79nIwuv7eZ7mpUPtSS2fo=";
};
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
topkg
];
buildInputs = [ topkg ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = {
description = "OCaml streaming codec to decode and encode the XML data format";
homepage = "https://erratique.ch/software/xmlm";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
mainProgram = "xmltrip";
inherit (ocaml.meta) platforms;
};
})
|