2021-11-19 10:56:09 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchFromGitHub
|
2022-08-14 02:26:16 +00:00
|
|
|
|
, cmake
|
|
|
|
|
, openssl
|
|
|
|
|
, zlib
|
|
|
|
|
}:
|
2014-04-25 15:18:18 +00:00
|
|
|
|
|
2015-01-12 08:24:41 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
|
pname = "capnproto";
|
2024-01-14 04:36:18 +00:00
|
|
|
|
version = "1.0.2";
|
2015-01-12 08:24:41 +00:00
|
|
|
|
|
2021-10-18 20:45:19 +00:00
|
|
|
|
# release tarballs are missing some ekam rules
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "capnproto";
|
|
|
|
|
repo = "capnproto";
|
|
|
|
|
rev = "v${version}";
|
2024-01-14 04:36:18 +00:00
|
|
|
|
sha256 = "sha256-LVdkqVBTeh8JZ1McdVNtRcnFVwEJRNjt0JV2l7RkuO8=";
|
2015-01-12 08:24:41 +00:00
|
|
|
|
};
|
2014-04-25 15:18:18 +00:00
|
|
|
|
|
2022-08-14 02:26:16 +00:00
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-08-16 11:05:14 +00:00
|
|
|
|
propagatedBuildInputs = [ openssl zlib ];
|
2021-09-20 13:46:43 +00:00
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
|
meta = with lib; {
|
2021-09-20 08:37:30 +00:00
|
|
|
|
homepage = "https://capnproto.org/";
|
2014-04-25 15:18:18 +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-20 08:37:30 +00:00
|
|
|
|
license = licenses.mit;
|
2014-04-25 15:18:18 +00:00
|
|
|
|
platforms = platforms.all;
|
2024-07-28 14:44:11 +00:00
|
|
|
|
maintainers = [ ];
|
2014-04-25 15:18:18 +00:00
|
|
|
|
};
|
|
|
|
|
}
|