1 { lib, stdenv, fetchFromGitHub, fetchpatch, capnproto, pkg-config }:
3 stdenv.mkDerivation rec {
4 pname = "capnproto-java";
7 src = fetchFromGitHub {
11 hash = "sha256:1512x70xa6mlg9dmr84r8xbf0jzysjal51ivhhh2ppl97yiqjgls";
15 # Add make install rule
17 url = "https://github.com/capnproto/capnproto-java/commit/e96448d3f5737db25e55cd268652712b69db5cc0.diff";
18 sha256 = "0f3vyap1zsxy675900pzg5ngh7bf9icllm1w04q64g8i91sdzljl";
22 nativeBuildInputs = [ pkg-config ];
24 buildInputs = [ capnproto ];
26 makeFlags = [ "PREFIX=${placeholder "out"}" ];
29 description = "Cap'n Proto codegen plugin for Java";
30 longDescription = "Only includes compiler plugin, the Java runtime/library that the generated code will link to must be built separately with Maven.";
31 homepage = "https://dwrensha.github.io/capnproto-java/index.html";
32 license = licenses.mit;
33 maintainers = with maintainers; [ bhipple ];