2014-09-18 07:49:08 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, protobuf, zlib }:
|
2012-09-25 17:35:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-18 07:49:08 +00:00
|
|
|
name = "protobuf-c-${version}";
|
|
|
|
version = "1.0.2";
|
2012-09-25 17:35:03 +00:00
|
|
|
|
2014-09-18 07:49:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "protobuf-c";
|
|
|
|
repo = "protobuf-c";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1harabw7qdgcmh098664xkcv8bkyach6i35sisc40yhvagr3fzsz";
|
2012-09-25 17:35:03 +00:00
|
|
|
};
|
|
|
|
|
2014-09-18 07:49:08 +00:00
|
|
|
buildInputs = [ autoreconfHook pkgconfig protobuf zlib ];
|
2012-09-25 17:35:03 +00:00
|
|
|
|
2014-09-18 07:49:08 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://github.com/protobuf-c/protobuf-c/;
|
2012-09-25 17:35:03 +00:00
|
|
|
description = "C bindings for Google's Protocol Buffers";
|
2014-09-18 07:49:08 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2012-09-25 17:35:03 +00:00
|
|
|
};
|
|
|
|
}
|