1{ stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 name = "protozero-${version}";
5 version = "1.6.4";
6
7 src = fetchFromGitHub {
8 owner = "mapbox";
9 repo = "protozero";
10 rev = "v${version}";
11 sha256 = "0hcawgyj3wxqikx5xqs1ag12w8vz00gb1rzx131jq51yhzc6bwrb";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 meta = with stdenv.lib; {
17 description = "Minimalistic protocol buffer decoder and encoder in C++";
18 homepage = "https://github.com/mapbox/protozero";
19 license = with licenses; [ bsd2 asl20 ];
20 maintainers = with maintainers; [ das-g ];
21 };
22}