summary refs log tree commit diff
path: root/pkgs/development/libraries/libosmpbf/default.nix
blob: 572b5710fa9a3bc94aa8473d45bf4abd7172d32a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{lib, stdenv, fetchurl, protobuf}:

stdenv.mkDerivation {
  name = "libosmpbf-1.5.0";

  src = fetchurl {
    url = "https://github.com/scrosby/OSM-binary/archive/v1.5.0.tar.gz";
    sha256 = "sha256-Kr8xJnKXk3MsM4B2OZnMNl5Rv/2jaaAIITh5o82QR2w=";
  };

  buildInputs = [ protobuf ];

  sourceRoot = "OSM-binary-1.5.0/src";

  installFlags = [ "PREFIX=$(out)" ];

  meta = {
    homepage = "https://github.com/scrosby/OSM-binary";
    description = "C library to read and write OpenStreetMap PBF files";
    license = lib.licenses.lgpl3;
    platforms = lib.platforms.unix;
  };
}