3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/piqi/default.nix

36 lines
898 B
Nix
Raw Normal View History

{ stdenv, fetchurl, ocaml, findlib, which, ulex, easy-format, ocaml_optcomp, xmlm, base64 }:
2015-06-10 21:35:22 +01:00
stdenv.mkDerivation rec {
version = "0.6.14";
2015-06-10 21:35:22 +01:00
name = "piqi-${version}";
src = fetchurl {
url = "https://github.com/alavrik/piqi/archive/v${version}.tar.gz";
sha256 = "1ssccnwqzfyf7syfq2fv4zyhwayxwd75rhq9y28mvq1w6qbww4l7";
2015-06-10 21:35:22 +01:00
};
buildInputs = [ ocaml findlib which ocaml_optcomp ];
2017-01-25 07:06:38 +00:00
propagatedBuildInputs = [ulex xmlm easy-format base64];
2015-06-10 21:35:22 +01:00
patches = [ ./no-ocamlpath-override.patch ];
2015-06-10 21:35:22 +01:00
createFindlibDestdir = true;
2017-01-25 07:06:38 +00:00
buildPhase = ''
make
make -C piqilib piqilib.cma
'';
2015-06-10 21:35:22 +01:00
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";
2015-06-10 21:35:22 +01:00
license = licenses.asl20;
maintainers = [ maintainers.maurer ];
};
}