depot/third_party/nixpkgs/pkgs/development/ocaml-modules/piqi/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

32 lines
890 B
Nix

{ lib, stdenv, fetchFromGitHub, ocaml, findlib, which, sedlex_2, easy-format, xmlm, base64 }:
stdenv.mkDerivation rec {
version = "0.6.15";
pname = "piqi";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchFromGitHub {
owner = "alavrik";
repo = pname;
rev = "v${version}";
sha256 = "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb";
};
buildInputs = [ ocaml findlib which ];
propagatedBuildInputs = [ sedlex_2 xmlm easy-format base64 ];
patches = [ ./no-ocamlpath-override.patch ];
createFindlibDestdir = true;
postBuild = "make -C piqilib piqilib.cma";
installTargets = [ "install" "ocaml-install" ];
meta = with lib; {
homepage = "https://piqi.org";
description = "Universal schema language and a collection of tools built around it";
license = licenses.asl20;
maintainers = [ maintainers.maurer ];
};
}