depot/third_party/nixpkgs/pkgs/development/libraries/protobufc/default.nix

28 lines
677 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config, protobuf, zlib
}:
stdenv.mkDerivation rec {
pname = "protobuf-c";
version = "1.4.1";
src = fetchFromGitHub {
owner = "protobuf-c";
repo = "protobuf-c";
rev = "refs/tags/v${version}";
hash = "sha256-TJCLzxozuZ8ynrBQ2lKyk03N+QA/lbOwywUjDUdTlbM=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ protobuf zlib ];
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; [ ];
};
}