aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/protobufc
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-09-18 00:49:08 -0700
committerWilliam A. Kennington III <william@wkennington.com>2014-09-18 00:49:18 -0700
commitb2600df4a86e561aa8e66475299e5aad399f3f3b (patch)
treeb8df95e63f1fa70b1ae5a76c198be4d9870f84fa /pkgs/development/libraries/protobufc
parent5dff5ede0a4cd2aa74934588ac06c56e78a9acfb (diff)
protobuf-c: 0.15 -> 1.0.2
Diffstat (limited to 'pkgs/development/libraries/protobufc')
-rw-r--r--pkgs/development/libraries/protobufc/default.nix27
1 files changed, 14 insertions, 13 deletions
diff --git a/pkgs/development/libraries/protobufc/default.nix b/pkgs/development/libraries/protobufc/default.nix
index 58c639ee604c..4d2c1d4349fc 100644
--- a/pkgs/development/libraries/protobufc/default.nix
+++ b/pkgs/development/libraries/protobufc/default.nix
@@ -1,22 +1,23 @@
-{ fetchurl, stdenv, zlib, protobuf }:
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, protobuf, zlib }:
stdenv.mkDerivation rec {
- name = "protobuf-c-0.15";
+ name = "protobuf-c-${version}";
+ version = "1.0.2";
- src = fetchurl {
- url = "http://protobuf-c.googlecode.com/files/${name}.tar.gz";
- sha256 = "0dh0180lzqk6n1r0qk38kgdy4x15mpkg5j4g2r31qhx52f757jwg";
+ src = fetchFromGitHub {
+ owner = "protobuf-c";
+ repo = "protobuf-c";
+ rev = "v${version}";
+ sha256 = "1harabw7qdgcmh098664xkcv8bkyach6i35sisc40yhvagr3fzsz";
};
- buildInputs = [ protobuf ];
+ buildInputs = [ autoreconfHook pkgconfig protobuf zlib ];
- doCheck = true;
-
- meta = {
+ meta = with stdenv.lib; {
+ homepage = http://github.com/protobuf-c/protobuf-c/;
description = "C bindings for Google's Protocol Buffers";
-
- license = "BSD";
-
- homepage = http://code.google.com/p/protobuf-c/;
+ license = licenses.bsd2;
+ platforms = platforms.all;
+ maintainers = with maintainers; [ wkennington ];
};
}