c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
35 lines
790 B
Nix
35 lines
790 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, protobuf
|
|
, zlib
|
|
, buildPackages
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "protobuf-c";
|
|
version = "unstable-2023-07-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "protobuf-c";
|
|
repo = "protobuf-c";
|
|
rev = "fa86fddbd000316772d1deb5a8d1201fa7599ef7";
|
|
hash = "sha256-pmqZYFREPgSrWPekymTglhtAv6gQR1gP3dOl3hqjYig=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
buildInputs = [ protobuf zlib ];
|
|
|
|
env.PROTOC = lib.getExe buildPackages.protobuf;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/protobuf-c/protobuf-c/";
|
|
description = "C bindings for Google's Protocol Buffers";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
}
|