2021-10-17 09:34:42 +00:00
|
|
|
|
{ lib, stdenv, fetchFromGitHub, capnproto, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "capnproto";
|
2021-08-23 08:02:39 +00:00
|
|
|
|
version = "0.9.0";
|
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}";
|
|
|
|
|
sha256 = "038i40apywn8sg95kwld4mg9p9m08izcw5xj7mwkmshycmqw65na";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
|
nativeBuildInputs = [ cmake ]
|
|
|
|
|
++ lib.optional (!(stdenv.hostPlatform.isCompatible stdenv.buildPlatform)) capnproto;
|
|
|
|
|
|
|
|
|
|
cmakeFlags = lib.optional (!(stdenv.hostPlatform.isCompatible stdenv.buildPlatform)) "-DEXTERNAL_CAPNP";
|
|
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|