Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

37 lines
893 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
capnproto,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "capnproto-java";
version = "0.1.16";
src = fetchFromGitHub {
owner = "capnproto";
repo = "capnproto-java";
rev = "v${finalAttrs.version}";
hash = "sha256-7uYtRHKsJvbE1b0HbNXGbRXpkUHHLjMDIWLlOUcQWDk=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ capnproto ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = {
description = "Cap'n Proto codegen plugin for Java";
mainProgram = "capnpc-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 = lib.licenses.mit;
maintainers = with lib.maintainers; [
solson
];
};
})