mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
b281d60c48
Release notes: https://github.com/protobuf-c/protobuf-c/releases/tag/v1.5.0 Split out `dev` and `lib`. Fixed anbox package moving protobufc to `nativeBuildInputs`, because the `proto-c` tool is used at `build-time`. Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
38 lines
793 B
Nix
38 lines
793 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, protobuf
|
|
, 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 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 ];
|
|
};
|
|
}
|