depot/third_party/nixpkgs/pkgs/development/libraries/protobufc/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

37 lines
802 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, protobuf_25
, zlib
, buildPackages
}:
stdenv.mkDerivation rec {
pname = "protobuf-c";
version = "1.5.0";
src = fetchFromGitHub {
owner = "protobuf-c";
repo = "protobuf-c";
rev = "refs/tags/v${version}";
hash = "sha256-Dkpcc7ZfvAIVY91trRiHuiRFcUGUbQxbheYKTBcq80I=";
};
outputs = [ "out" "dev" "lib" ];
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ protobuf_25 zlib ];
env.PROTOC = lib.getExe buildPackages.protobuf_25;
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 ];
};
}