blob: 95b78b724eb6c15efea0025d684f05a57c007ec9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, capnproto, pkg-config }:
stdenv.mkDerivation rec {
pname = "capnproto-java";
version = "0.1.5";
src = fetchFromGitHub {
owner = "capnproto";
repo = pname;
rev = "v${version}";
hash = "sha256:1512x70xa6mlg9dmr84r8xbf0jzysjal51ivhhh2ppl97yiqjgls";
};
patches = [
# Add make install rule
(fetchpatch {
url = "https://github.com/capnproto/capnproto-java/commit/e96448d3f5737db25e55cd268652712b69db5cc0.diff";
sha256 = "0f3vyap1zsxy675900pzg5ngh7bf9icllm1w04q64g8i91sdzljl";
})
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ capnproto ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
description = "Cap'n Proto codegen plugin for Java";
longDescription = "Only includes compiler plugin, the Java runtime/library that the generated code will link to must be built separately with Maven.";
homepage = "https://dwrensha.github.io/capnproto-java/index.html";
license = licenses.mit;
maintainers = with maintainers; [ bhipple ];
};
}
|