3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/xmlm/default.nix

32 lines
865 B
Nix
Raw Normal View History

2017-12-14 07:36:29 +00:00
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
let
pname = "xmlm";
webpage = "https://erratique.ch/software/${pname}";
in
2018-06-04 19:28:12 +01:00
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "xmlm is not available for OCaml ${ocaml.version}"
else
2017-10-07 06:15:50 +01:00
stdenv.mkDerivation rec {
2018-06-04 19:28:12 +01:00
name = "ocaml${ocaml.version}-${pname}-${version}";
version = "1.3.0";
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
2018-06-04 19:28:12 +01:00
sha256 = "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n";
};
2018-06-04 19:28:12 +01:00
buildInputs = [ ocaml findlib ocamlbuild topkg ];
2018-06-04 19:28:12 +01:00
inherit (topkg) buildPhase installPhase;
meta = with stdenv.lib; {
description = "An OCaml streaming codec to decode and encode the XML data format";
2019-09-09 00:38:31 +01:00
homepage = webpage;
platforms = ocaml.meta.platforms or [];
maintainers = [ maintainers.vbgl ];
license = licenses.bsd3;
};
}