From 9c0f1eefc616bcf7d83fb834d448d1b4aa6e434f Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Wed, 10 Jun 2015 23:00:52 +0200 Subject: [PATCH] piqi-ocaml: init at 0.7.4 --- .../ocaml-modules/piqi-ocaml/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/ocaml-modules/piqi-ocaml/default.nix diff --git a/pkgs/development/ocaml-modules/piqi-ocaml/default.nix b/pkgs/development/ocaml-modules/piqi-ocaml/default.nix new file mode 100644 index 000000000000..fea1ee150446 --- /dev/null +++ b/pkgs/development/ocaml-modules/piqi-ocaml/default.nix @@ -0,0 +1,24 @@ +{stdenv, fetchurl, ocaml, findlib, piqi, ulex, easy-format, xmlm, base64, camlp4}: + +stdenv.mkDerivation rec { + version = "0.7.4"; + name = "piqi-ocaml-${version}"; + + src = fetchurl { + url = "https://github.com/alavrik/piqi-ocaml/archive/v${version}.tar.gz"; + sha256 = "064c74f031l847q6s1vilj77n7h7i84jn8c83yid9nha3dssaf7m"; + }; + + buildInputs = [ocaml findlib piqi base64 camlp4]; + + createFindlibDestdir = true; + + installPhase = "DESTDIR=$out make install"; + + meta = with stdenv.lib; { + homepage = http://piqi.org; + description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings."; + license = licenses.asl20; + maintainers = [ maintainers.maurer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0193b64e299e..43949d5c0b84 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4481,6 +4481,7 @@ let ounit = callPackage ../development/ocaml-modules/ounit { }; piqi = callPackage ../development/ocaml-modules/piqi { }; + piqi-ocaml = callPackage ../development/ocaml-modules/piqi-ocaml { }; re2 = callPackage ../development/ocaml-modules/re2 { };