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

The upstream URL has changed as well as the download URL. I'm using the archive from GitHub directly now, because version 2.6.1 hasn't been uploaded to Google Code yet. Changed the meta.license attribute to BSD3, because I haven't actually found anything regarding "mBSD" on the web, so I'm guessing it should mean "modified BSD". After digging up a bit more, there seems to be overall consensus on BSD3/"new BSD" license, because it's BSD3 with copyright of Google Inc. on the license. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commit18b306b0414c13b5584c2325e9a01e065d715498 authoraszlig <aszlig@redmoonstudios.org> dateWed 19 Nov 2014, 19:33 (12 years ago) parent8236ca5
1 file changed+27−14
pkgs/development/libraries/protobuf/default.nix+27−14
pkgs/development/libraries/protobuf/default.nix+27−14
@@ -1,28 +1,41 @@
1−{ fetchurl, stdenv, zlib }:
1+{ stdenv, fetchFromGitHub, autoconf, automake, libtool, zlib, gtest }:
22
33stdenv.mkDerivation rec {
4− name = "protobuf-2.5.0";
5−
6− src = fetchurl {
7− url = "http://protobuf.googlecode.com/files/${name}.tar.bz2";
8− sha256 = "0xxn9gxhvsgzz2sgmihzf6pf75clr05mqj6218camwrwajpcbgqk";
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";
912 };
1013
11− buildInputs = [ zlib ];
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+ '';
21+
22+ buildInputs = [ zlib autoconf automake libtool gtest ];
23+
24+ preConfigure = "autoreconf -vfi";
1225
1326 doCheck = true;
1427
1528 meta = {
1629 description = "Protocol Buffers - Google's data interchange format";
1730
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− '';
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+ '';
2336
24− license = "mBSD";
37+ license = stdenv.lib.licenses.bsd3;
2538
26− homepage = http://code.google.com/p/protobuf/;
39+ homepage = "https://developers.google.com/protocol-buffers/";
2740 };
2841}