Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / protobufc / default.nix
blobd152512783f0e5cb411cc5a38ee57e33e20ff5b6
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 , pkg-config
6 , protobuf
7 , zlib
8 , buildPackages
9 }:
11 stdenv.mkDerivation rec {
12   pname = "protobuf-c";
13   version = "unstable-2023-07-08";
15   src = fetchFromGitHub {
16     owner = "protobuf-c";
17     repo = "protobuf-c";
18     rev = "fa86fddbd000316772d1deb5a8d1201fa7599ef7";
19     hash = "sha256-pmqZYFREPgSrWPekymTglhtAv6gQR1gP3dOl3hqjYig=";
20   };
22   nativeBuildInputs = [ autoreconfHook pkg-config ];
24   buildInputs = [ protobuf zlib ];
26   env.PROTOC = lib.getExe buildPackages.protobuf;
28   meta = with lib; {
29     homepage = "https://github.com/protobuf-c/protobuf-c/";
30     description = "C bindings for Google's Protocol Buffers";
31     license = licenses.bsd2;
32     platforms = platforms.all;
33     maintainers = with maintainers; [ nickcao ];
34   };