commit d270f715164efd202aa6fafcf14a4e505c8ec299
parent d8e96c508379f2e7c84216d4861719b4a31f674a
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Fri, 4 Jun 2021 04:16:19 +0300
Add imposm3
Diffstat:
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -255,6 +255,7 @@ lib.makeScope newScope (
### OSM
+ imposm = callPackage ./osm/imposm { };
map-stylizer = callPackage ./osm/map-stylizer { };
maperitive-bin = callPackage ./osm/maperitive/bin.nix { };
osm-area-tools = callPackage ./osm/osm-area-tools { };
diff --git a/pkgs/osm/imposm/default.nix b/pkgs/osm/imposm/default.nix
@@ -0,0 +1,30 @@
+{ lib, buildGoModule, fetchFromGitHub, leveldb, geos }:
+
+buildGoModule rec {
+ pname = "imposm";
+ version = "0.11.1";
+
+ src = fetchFromGitHub {
+ owner = "omniscale";
+ repo = "imposm3";
+ rev = "v${version}";
+ hash = "sha256-ufP617XMkNyntdjB7EMhhkSDau/8j2UP1UAPegqP1sU=";
+ };
+
+ vendorSha256 = null;
+
+ buildInputs = [ leveldb geos ];
+
+ buildFlagsArray = [ "-ldflags=-s -w -X github.com/omniscale/imposm3.Version=${version}" ];
+
+ # requires network access
+ doCheck = false;
+
+ meta = with lib; {
+ description = "Imposm imports OpenStreetMap data into PostGIS";
+ inherit (src.meta) homepage;
+ license = licenses.apsl20;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}