2015-02-06 20:21:57 +00:00
|
|
|
{ stdenv, version, src
|
|
|
|
, autoreconfHook, zlib, gtest
|
|
|
|
, ...
|
|
|
|
}:
|
2010-10-30 21:44:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-02-20 18:42:14 +00:00
|
|
|
name = "protobuf-${version}";
|
2014-11-19 18:33:20 +00:00
|
|
|
|
2015-02-06 20:21:57 +00:00
|
|
|
inherit src;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm -rf gtest
|
|
|
|
cp -r ${gtest.source} gtest
|
|
|
|
chmod -R a+w gtest
|
|
|
|
'';
|
2014-11-19 18:33:20 +00:00
|
|
|
|
2015-02-06 20:21:57 +00:00
|
|
|
buildInputs = [ autoreconfHook zlib ];
|
2010-10-30 21:44:22 +00:00
|
|
|
|
2014-09-18 11:12:01 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2010-10-30 21:44:22 +00:00
|
|
|
description = "Protocol Buffers - Google's data interchange format";
|
2014-09-18 11:12:01 +00:00
|
|
|
|
2014-11-25 11:59:56 +00:00
|
|
|
longDescription =
|
|
|
|
'' Protocol Buffers are a way of encoding structured data in an
|
|
|
|
efficient yet extensible format. Google uses Protocol Buffers for
|
|
|
|
almost all of its internal RPC protocols and file formats.
|
|
|
|
'';
|
2014-09-18 11:12:01 +00:00
|
|
|
|
2014-11-25 11:59:56 +00:00
|
|
|
license = "mBSD";
|
2014-09-18 11:12:01 +00:00
|
|
|
|
2014-11-25 11:59:56 +00:00
|
|
|
homepage = http://code.google.com/p/protobuf/;
|
2010-10-30 21:44:22 +00:00
|
|
|
};
|
2015-02-20 18:36:16 +00:00
|
|
|
|
|
|
|
passthru.version = version;
|
2010-10-30 21:44:22 +00:00
|
|
|
}
|