2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, protobuf
|
|
|
|
, zlib
|
|
|
|
, buildPackages
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "protobuf-c";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "unstable-2023-07-08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "protobuf-c";
|
|
|
|
repo = "protobuf-c";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "fa86fddbd000316772d1deb5a8d1201fa7599ef7";
|
|
|
|
hash = "sha256-pmqZYFREPgSrWPekymTglhtAv6gQR1gP3dOl3hqjYig=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ protobuf zlib ];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
env.PROTOC = lib.getExe buildPackages.protobuf;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/protobuf-c/protobuf-c/";
|
|
|
|
description = "C bindings for Google's Protocol Buffers";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
2022-12-28 21:21:41 +00:00
|
|
|
maintainers = with maintainers; [ nickcao ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|