1{ lib, stdenv, fetchFromGitHub, fetchpatch, capnproto, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "capnproto-java";
5 version = "0.1.15";
6
7 src = fetchFromGitHub {
8 owner = "capnproto";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256:IcmzI1G0mXOlpzmiyeLD7o1p/eOeVpwkiGsgy5OIjxw=";
12 };
13
14 nativeBuildInputs = [ pkg-config ];
15
16 buildInputs = [ capnproto ];
17
18 makeFlags = [ "PREFIX=${placeholder "out"}" ];
19
20 meta = with lib; {
21 description = "Cap'n Proto codegen plugin for Java";
22 longDescription = "Only includes compiler plugin, the Java runtime/library that the generated code will link to must be built separately with Maven.";
23 homepage = "https://dwrensha.github.io/capnproto-java/index.html";
24 license = licenses.mit;
25 maintainers = with maintainers; [ bhipple solson ];
26 };
27}