From 82e92678653034da012ef43699a7d7d57a58fa5b Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Tue, 20 Dec 2016 00:26:03 +0100 Subject: [PATCH] ajout en-cours osm2pgsql --- osm2pgsql.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 osm2pgsql.nix diff --git a/osm2pgsql.nix b/osm2pgsql.nix new file mode 100644 index 0000000..dc60e56 --- /dev/null +++ b/osm2pgsql.nix @@ -0,0 +1,40 @@ +with import {}; + +stdenv.mkDerivation rec { + #version = "0.87.1"; + version = "0.90.1"; + name = "osm2pgsql-${version}-0"; + + src = fetchurl { + url = "https://github.com/openstreetmap/osm2pgsql/archive/${version}.tar.gz"; + sha256 = "0i0zg8di8nbh96qnyyr156ikwcsq1w9b2291bazm5whb351flmqx"; + }; + + #nativeBuildInputs = [ ]; + buildInputs = [ + boost + bzip2 + cmake + expat + geos + lua + postgresql + proj + zlib + ]; + + #preConfigure = '' + #''; + #buildPhase = ''jam "-j$NIX_BUILD_CORES" ''; + #installPhase = '' + #''; + + 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 = [ maintainers.jpierre03 ]; + }; + } +