mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Add ocaml-xml-light
This commit is contained in:
parent
4129886f2e
commit
7f07b33e4d
2 changed files with 45 additions and 0 deletions
43
pkgs/development/ocaml-modules/xml-light/default.nix
Normal file
43
pkgs/development/ocaml-modules/xml-light/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{stdenv, fetchurl, ocaml, findlib}:
|
||||
let
|
||||
pname = "xml-light";
|
||||
version = "2.4";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml-${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ncannasse/${pname}/archive/${version}.tar.gz";
|
||||
sha256 = "10b55qf6mvdp11ny3h0jv6k6wrs78jr9lhsiswl0xya7z8r8j0a2";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
buildPhase = ''
|
||||
make all
|
||||
make opt
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
make install_ocamlfind
|
||||
mkdir -p $out/share
|
||||
cp -vai doc $out/share/
|
||||
'';
|
||||
|
||||
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 = stdenv.lib.licenses.lgpl21;
|
||||
maintainers = [ stdenv.lib.maintainers.romildo ];
|
||||
platforms = ocaml.meta.platforms;
|
||||
};
|
||||
}
|
|
@ -4095,6 +4095,8 @@ let
|
|||
|
||||
xmlm = callPackage ../development/ocaml-modules/xmlm { };
|
||||
|
||||
xml-light = callPackage ../development/ocaml-modules/xml-light { };
|
||||
|
||||
yojson = callPackage ../development/ocaml-modules/yojson { };
|
||||
|
||||
zarith = callPackage ../development/ocaml-modules/zarith { };
|
||||
|
|
Loading…
Reference in a new issue