2021-12-06 16:07:01 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchFromGitHub
|
2022-08-21 13:32:41 +00:00
|
|
|
|
, cmake
|
|
|
|
|
, openssl
|
|
|
|
|
, zlib
|
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "capnproto";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
version = "0.10.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
|
# release tarballs are missing some ekam rules
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "capnproto";
|
|
|
|
|
repo = "capnproto";
|
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
sha256 = "sha256-45sxnVyyYIw9i3sbFZ1naBMoUzkpP21WarzR5crg4X8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
propagatedBuildInputs = [ openssl zlib ];
|
2021-09-28 08:13:01 +00:00
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
meta = with lib; {
|
2021-09-22 15:38:15 +00:00
|
|
|
|
homepage = "https://capnproto.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Cap'n Proto cerealization protocol";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
Cap’n Proto is an insanely fast data interchange format and
|
|
|
|
|
capability-based RPC system. Think JSON, except binary. Or think Protocol
|
|
|
|
|
Buffers, except faster.
|
|
|
|
|
'';
|
2021-09-22 15:38:15 +00:00
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
|
};
|
|
|
|
|
}
|