capnproto-java: init at 0.1.5

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Hector Escobedo 2021-01-21 14:35:02 -08:00 committed by John Ericson
parent 5f472181f2
commit a5ae1361ff
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,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 ];
};
}

View file

@ -13150,6 +13150,8 @@ in
capnproto = callPackage ../development/libraries/capnproto { };
capnproto-java = callPackage ../development/tools/capnproto-java { };
captive-browser = callPackage ../applications/networking/browsers/captive-browser { };
ndn-cxx = callPackage ../development/libraries/ndn-cxx { };