You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB
Nix

with import <nixpkgs> {};
stdenv.mkDerivation rec {
version = "0.92.0";
name = "osm2pgsql-${version}";
8 years ago
src = fetchFromGitHub {
owner = "openstreetmap";
repo = "osm2pgsql";
rev = version;
sha256 = "1wf3xd33glf4kf34yx7ljwzmn24iar1rb0zqf8m2qclqs169f8dz";
};
# https://github.com/openstreetmap/osm2pgsql/issues/634
# https://bz-attachments.freebsd.org/attachment.cgi?id=177390
patches = [
use-geos36.patch
];
8 years ago
#nativeBuildInputs = [ ];
buildInputs = [
boost
bzip2
cmake
expat
8 years ago
geos
8 years ago
#libressl # TLS, crypto implementation
lua
openssl # TLS, crypto implementation
python python27Packages.psycopg2 # regression tests
postgresql
proj
zlib
];
8 years ago
#preConfigure = ''
#'';
#buildPhase = ''jam "-j$NIX_BUILD_CORES" '';
#installPhase = ''
#'';
8 years ago
meta = with stdenv.lib; {
homepage = http://wiki.openstreetmap.org/wiki/Osm2pgsql;
description = "osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database suitable for applications like rendering into a map, geocoding with Nominatim, or general analysis.";
#license = licenses.gpl2;
#maintainers = [ maintainers.phunehehe ];
maintainers = [ "Jean-Pierre PRUNARET <jean-pierre+git@prunetwork.fr>" ];
#maintainers = [ maintainers.jpierre03 ];
};
9 years ago
}