depot/pkgs/development/ocaml-modules/xml-light/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

31 lines
902 B
Nix

{ lib
, buildDunePackage
, fetchurl
}:
buildDunePackage rec {
pname = "xml-light";
version = "2.5";
duneVersion = "3";
minimalOCamlVersion = "4.03";
src = fetchurl {
url = "https://github.com/ncannasse/xml-light/releases/download/${version}/xml-light-${version}.tbz";
hash = "sha256-9YwrPbcK0boICw0wauMvgsy7ldq7ksWZzcRn0eROAD0=";
};
meta = {
description = "Minimal Xml parser and printer for OCaml";
longDescription = ''
Xml-Light provides functions to parse an XML document into an OCaml
data structure, work with it, and print it back to an XML
document. It support also DTD parsing and checking, and is
entirely written in OCaml, hence it does not require additional C
library.
'';
homepage = "http://tech.motion-twin.com/xmllight.html";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.romildo ];
};
}