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

31 lines
820 B
Nix

{ lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, piqi, stdlib-shims }:
stdenv.mkDerivation rec {
version = "0.7.7";
pname = "piqi-ocaml";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchFromGitHub {
owner = "alavrik";
repo = pname;
rev = "v${version}";
sha256 = "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm";
};
buildInputs = [ ocaml findlib piqi stdlib-shims ];
createFindlibDestdir = true;
installPhase = ''
runHook preInstall
DESTDIR=$out make install
runHook postInstall
'';
meta = with lib; {
homepage = "https://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 ];
};
}