tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
protobuf-c: 0.15 -> 1.0.2
William A. Kennington III
11 years ago
b2600df4
5dff5ede
+14
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
protobufc
default.nix
+14
-13
pkgs/development/libraries/protobufc/default.nix
···
1
1
-
{ fetchurl, stdenv, zlib, protobuf }:
1
1
+
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, protobuf, zlib }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
-
name = "protobuf-c-0.15";
4
4
+
name = "protobuf-c-${version}";
5
5
+
version = "1.0.2";
5
6
6
6
-
src = fetchurl {
7
7
-
url = "http://protobuf-c.googlecode.com/files/${name}.tar.gz";
8
8
-
sha256 = "0dh0180lzqk6n1r0qk38kgdy4x15mpkg5j4g2r31qhx52f757jwg";
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "protobuf-c";
9
9
+
repo = "protobuf-c";
10
10
+
rev = "v${version}";
11
11
+
sha256 = "1harabw7qdgcmh098664xkcv8bkyach6i35sisc40yhvagr3fzsz";
9
12
};
10
13
11
11
-
buildInputs = [ protobuf ];
14
14
+
buildInputs = [ autoreconfHook pkgconfig protobuf zlib ];
12
15
13
13
-
doCheck = true;
14
14
-
15
15
-
meta = {
16
16
+
meta = with stdenv.lib; {
17
17
+
homepage = http://github.com/protobuf-c/protobuf-c/;
16
18
description = "C bindings for Google's Protocol Buffers";
17
17
-
18
18
-
license = "BSD";
19
19
-
20
20
-
homepage = http://code.google.com/p/protobuf-c/;
19
19
+
license = licenses.bsd2;
20
20
+
platforms = platforms.all;
21
21
+
maintainers = with maintainers; [ wkennington ];
21
22
};
22
23
}