Merge pull request #110401 from obsidiansystems/capnproto-java-init
capnproto-java: init at 0.1.5
This commit is contained in:
commit
f48a2c4d1c
35
pkgs/development/tools/capnproto-java/default.nix
Normal file
35
pkgs/development/tools/capnproto-java/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user