depot/third_party/nixpkgs/pkgs/by-name/im/imposm/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

34 lines
805 B
Nix

{ lib, buildGoModule, fetchFromGitHub, leveldb, geos }:
buildGoModule rec {
pname = "imposm";
version = "0.14.0";
src = fetchFromGitHub {
owner = "omniscale";
repo = "imposm3";
rev = "v${version}";
hash = "sha256-4PwJzR/xeVdqAiHXzMAqI2m8qeqFXLZxy9V3o59eKwA=";
};
vendorHash = null;
buildInputs = [ leveldb geos ];
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";
homepage = "https://imposm.org/";
changelog = "https://github.com/omniscale/imposm3/releases/tag/${src.rev}";
license = licenses.apsl20;
maintainers = with maintainers; [ sikmir ];
mainProgram = "imposm";
};
}