mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
ocamlPackages.ezxmlm: init at 1.0.2
This commit is contained in:
parent
963dcd935d
commit
364d477236
2 changed files with 42 additions and 0 deletions
40
pkgs/development/ocaml-modules/ezxmlm/default.nix
Normal file
40
pkgs/development/ocaml-modules/ezxmlm/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, xmlm }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.0.2";
|
||||
name = "ocaml${ocaml.version}-ezxmlm-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "avsm";
|
||||
repo = "ezxmlm";
|
||||
rev = "v${version}";
|
||||
sha256 = "1dgr61f0hymywikn67inq908x5adrzl3fjx3v14l9k46x7kkacl9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ xmlm ];
|
||||
|
||||
buildInputs = [ ocaml findlib dune ];
|
||||
|
||||
buildFlags = "build";
|
||||
|
||||
inherit (dune) installPhase;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Combinators to use with xmlm for parsing and selection";
|
||||
longDescription = ''
|
||||
An "easy" interface on top of the xmlm library. This version provides
|
||||
more convenient (but far less flexible) input and output functions
|
||||
that go to and from [string] values. This avoids the need to write signal
|
||||
code, which is useful for quick scripts that manipulate XML.
|
||||
|
||||
More advanced users should go straight to the Xmlm library and use it
|
||||
directly, rather than be saddled with the Ezxmlm interface. Since the
|
||||
types in this library are more specific than Xmlm, it should interoperate
|
||||
just fine with it if you decide to switch over.
|
||||
'';
|
||||
maintainers = [ maintainers.carlosdagos ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
license = licenses.isc;
|
||||
};
|
||||
}
|
|
@ -252,6 +252,8 @@ let
|
|||
|
||||
ezjsonm = callPackage ../development/ocaml-modules/ezjsonm { };
|
||||
|
||||
ezxmlm = callPackage ../development/ocaml-modules/ezxmlm { };
|
||||
|
||||
facile = callPackage ../development/ocaml-modules/facile { };
|
||||
|
||||
faillib = callPackage ../development/ocaml-modules/faillib { };
|
||||
|
|
Loading…
Reference in a new issue