about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/protobufc/generic.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/protobufc/generic.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/protobufc/generic.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/protobufc/generic.nix b/nixpkgs/pkgs/development/libraries/protobufc/generic.nix
new file mode 100644
index 000000000000..b64d75076baf
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/protobufc/generic.nix
@@ -0,0 +1,21 @@
+{ lib, stdenv, src, version
+, autoreconfHook, pkg-config, protobuf, zlib
+, ...
+}:
+
+stdenv.mkDerivation {
+  pname = "protobuf-c";
+  inherit version;
+
+  inherit src;
+
+  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;
+  };
+}