git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "protobuf: Clean up and update to version 2.6.1."

This reverts commit 18b306b0414c13b5584c2325e9a01e065d715498. Protobuf releases are generally not very backwards compatible and likely to break lots of stuff. E.g. http://hydra.nixos.org/build/17535340 http://hydra.nixos.org/build/17535640 http://hydra.nixos.org/build/17536998 http://hydra.nixos.org/build/17536170 See also b851e970daee1cd4a6b6977c9f67ed16cefc1229.

commit1fdefd5562be9f8b726e20a8f0bfab46cc7ae024 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateTue 25 Nov 2014, 12:59 (12 years ago) parent4158847
1 file changed+14−27
pkgs/development/libraries/protobuf/default.nix+14−27
pkgs/development/libraries/protobuf/default.nix+14−27
@@ -1,41 +1,28 @@
1−{ stdenv, fetchFromGitHub, autoconf, automake, libtool, zlib, gtest }:
1+{ fetchurl, stdenv, zlib }:
22
33stdenv.mkDerivation rec {
4− name = "protobuf-${version}";
5− version = "2.6.1";
6−
7− src = fetchFromGitHub {
8− owner = "google";
9− repo = "protobuf";
10− rev = version;
11− sha256 = "03df8zvx2sry3jz2x4pi3l32qyfqa7w8kj8jdbz30nzy0h7aa070";
12− };
13−
14− postPatch = ''
15− sed -i -e '/gtest/d' Makefile.am
16− sed -i \
17− -e 's!\$(top_\(build\|src\)dir)/gtest!${gtest}!g' \
18− -e 's/\(libgtest[^.]*\.\)la/\1a/g' \
19− src/Makefile.am
20− '';
4+ name = "protobuf-2.5.0";
215
22− buildInputs = [ zlib autoconf automake libtool gtest ];
6+ src = fetchurl {
7+ url = "http://protobuf.googlecode.com/files/${name}.tar.bz2";
8+ sha256 = "0xxn9gxhvsgzz2sgmihzf6pf75clr05mqj6218camwrwajpcbgqk";
9+ };
2310
24− preConfigure = "autoreconf -vfi";
11+ buildInputs = [ zlib ];
2512
2613 doCheck = true;
2714
2815 meta = {
2916 description = "Protocol Buffers - Google's data interchange format";
3017
31− longDescription = ''
32− Protocol Buffers are a way of encoding structured data in an
33− efficient yet extensible format. Google uses Protocol Buffers for
34− almost all of its internal RPC protocols and file formats.
35− '';
18+ longDescription =
19+ '' Protocol Buffers are a way of encoding structured data in an
20+ efficient yet extensible format. Google uses Protocol Buffers for
21+ almost all of its internal RPC protocols and file formats.
22+ '';
3623
37− license = stdenv.lib.licenses.bsd3;
24+ license = "mBSD";
3825
39− homepage = "https://developers.google.com/protocol-buffers/";
26+ homepage = http://code.google.com/p/protobuf/;
4027 };
4128}