at 24.11-pre 28 lines 862 B view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, capnproto, pkg-config }: 2 3stdenv.mkDerivation rec { 4 pname = "capnproto-java"; 5 version = "0.1.16"; 6 7 src = fetchFromGitHub { 8 owner = "capnproto"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-7uYtRHKsJvbE1b0HbNXGbRXpkUHHLjMDIWLlOUcQWDk="; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 16 buildInputs = [ capnproto ]; 17 18 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 19 20 meta = with lib; { 21 description = "Cap'n Proto codegen plugin for Java"; 22 mainProgram = "capnpc-java"; 23 longDescription = "Only includes compiler plugin, the Java runtime/library that the generated code will link to must be built separately with Maven."; 24 homepage = "https://dwrensha.github.io/capnproto-java/index.html"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ bhipple solson ]; 27 }; 28}