1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/piqi/default.nix
2020-04-10 17:54:53 +01:00

36 lines
887 B
Nix

{ stdenv, fetchurl, ocaml, findlib, which, ulex, easy-format, ocaml_optcomp, xmlm, base64 }:
stdenv.mkDerivation rec {
version = "0.6.14";
pname = "piqi";
src = fetchurl {
url = "https://github.com/alavrik/piqi/archive/v${version}.tar.gz";
sha256 = "1ssccnwqzfyf7syfq2fv4zyhwayxwd75rhq9y28mvq1w6qbww4l7";
};
buildInputs = [ ocaml findlib which ocaml_optcomp ];
propagatedBuildInputs = [ulex xmlm easy-format base64];
patches = [ ./no-ocamlpath-override.patch ];
createFindlibDestdir = true;
buildPhase = ''
make
make -C piqilib piqilib.cma
'';
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 ];
};
}