@@ -1,41 +1,28 @@
1−{ stdenv, fetchFromGitHub, autoconf, automake, libtool, zlib, gtest }:
1+{ fetchurl, stdenv, zlib }:
3stdenv.mkDerivation rec {
3stdenv.mkDerivation rec {
4− name = "protobuf-${version}";
4+ name = "protobuf-2.5.0";
7− src = fetchFromGitHub {
11− sha256 = "03df8zvx2sry3jz2x4pi3l32qyfqa7w8kj8jdbz30nzy0h7aa070";
15− sed -i -e '/gtest/d' Makefile.am
17− -e 's!\$(top_\(build\|src\)dir)/gtest!${gtest}!g' \
18− -e 's/\(libgtest[^.]*\.\)la/\1a/g' \
22− buildInputs = [ zlib autoconf automake libtool gtest ];
6+ src = fetchurl {
7+ url = "http://protobuf.googlecode.com/files/${name}.tar.bz2";
8+ sha256 = "0xxn9gxhvsgzz2sgmihzf6pf75clr05mqj6218camwrwajpcbgqk";
24− preConfigure = "autoreconf -vfi";
11+ buildInputs = [ zlib ];
26 doCheck = true;
13 doCheck = true;
29 description = "Protocol Buffers - Google's data interchange format";
16 description = "Protocol Buffers - Google's data interchange format";
31− longDescription = ''
18+ longDescription =
32− Protocol Buffers are a way of encoding structured data in an
19+ '' Protocol Buffers are a way of encoding structured data in an
33− efficient yet extensible format. Google uses Protocol Buffers for
20+ efficient yet extensible format. Google uses Protocol Buffers for
34− almost all of its internal RPC protocols and file formats.
21+ almost all of its internal RPC protocols and file formats.
37− license = stdenv.lib.licenses.bsd3;
24+ license = "mBSD";
39− homepage = "https://developers.google.com/protocol-buffers/";
26+ homepage = http://code.google.com/p/protobuf/;