1{stdenv, fetchurl, protobuf}:
2
3stdenv.mkDerivation rec {
4 name = "libosmpbf-1.3.3";
5
6 src = fetchurl {
7 url = "https://github.com/scrosby/OSM-binary/archive/v1.3.3.tar.gz";
8 sha256 = "a109f338ce6a8438a8faae4627cd08599d0403b8977c185499de5c17b92d0798";
9 };
10
11 buildInputs = [ protobuf ];
12
13 sourceRoot = "OSM-binary-1.3.3/src";
14
15 installFlags = "PREFIX=$(out)";
16
17 meta = {
18 homepage = https://github.com/scrosby/OSM-binary;
19 description = "C library to read and write OpenStreetMap PBF files";
20 license = stdenv.lib.licenses.lgpl3;
21 platforms = stdenv.lib.platforms.unix;
22 };
23}