summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorCarlos D'Agostino <m@cdagostino.io>2018-10-06 17:44:22 +1000
committerVincent Laporte <vbgl@users.noreply.github.com>2018-10-06 14:18:51 +0000
commit364d47723692d88e391a9e19679707a1d3a29402 (patch)
tree62af3ca2c6a665f5a271118f506ed200931c1b61 /pkgs/development/ocaml-modules
parent963dcd935d2e0f6ed1d32dadd68c6e2ec0ba154c (diff)
downloadnixpkgs-364d47723692d88e391a9e19679707a1d3a29402.tar
nixpkgs-364d47723692d88e391a9e19679707a1d3a29402.tar.gz
nixpkgs-364d47723692d88e391a9e19679707a1d3a29402.tar.bz2
nixpkgs-364d47723692d88e391a9e19679707a1d3a29402.tar.lz
nixpkgs-364d47723692d88e391a9e19679707a1d3a29402.tar.xz
nixpkgs-364d47723692d88e391a9e19679707a1d3a29402.tar.zst
nixpkgs-364d47723692d88e391a9e19679707a1d3a29402.zip
ocamlPackages.ezxmlm: init at 1.0.2
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/ezxmlm/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ezxmlm/default.nix b/pkgs/development/ocaml-modules/ezxmlm/default.nix
new file mode 100644
index 00000000000..d40c47dd7a4
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ezxmlm/default.nix
@@ -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;
+  };
+}