From 1d79d840b126ccebb21e4cd5ff1022d81141fab5 Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Wed, 10 Jun 2015 22:35:22 +0200 Subject: piqi: init at 0.6.12 --- pkgs/development/ocaml-modules/piqi/default.nix | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/development/ocaml-modules/piqi/default.nix (limited to 'pkgs/development/ocaml-modules/piqi/default.nix') diff --git a/pkgs/development/ocaml-modules/piqi/default.nix b/pkgs/development/ocaml-modules/piqi/default.nix new file mode 100644 index 00000000000..7cca68c4f79 --- /dev/null +++ b/pkgs/development/ocaml-modules/piqi/default.nix @@ -0,0 +1,30 @@ +{stdenv, fetchurl, ocaml, findlib, camlp4, which, ulex, easy-format, ocaml_optcomp, xmlm, base64}: + +stdenv.mkDerivation rec { + version = "0.6.12"; + name = "piqi-${version}"; + + src = fetchurl { + url = "https://github.com/alavrik/piqi/archive/v${version}.tar.gz"; + sha256 = "1ifnawnblvibf5rgp6gr4f20266dckfrlryikg1iiq3dx2wfl7f8"; + }; + + buildInputs = [ocaml findlib camlp4 which ocaml_optcomp base64]; + propagatedBuildInputs = [ulex xmlm easy-format]; + + patches = [ ./no-ocamlpath-override.patch ]; + + createFindlibDestdir = true; + + installPhase = '' + make install; + make ocaml-install; + ''; + + meta = with stdenv.lib; { + homepage = http://piqi.org; + description = "Universal schema language and a collection of tools built around it."; + license = licenses.asl20; + maintainers = [ maintainers.maurer ]; + }; +} -- cgit 1.4.1