From aec2f9bfe9f8f1c2c962f0d7b0530a8da9ab4737 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Tue, 2 Aug 2016 01:19:55 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20d'un=20d=C3=A9but=20de=20cr=C3=A9ation?= =?UTF-8?q?=20de=20d=C3=A9rivation=20pour=20osm2pgsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- osm2psql.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 osm2psql.nix diff --git a/osm2psql.nix b/osm2psql.nix new file mode 100644 index 0000000..8e001bf --- /dev/null +++ b/osm2psql.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl +, boost +, bzip2 +, cmake +, expat +, geos +, lua +, postgresql +, proj +, zlib +} + +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 = [ ]; + + #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 ]; + }; + } +