depot/third_party/nixpkgs/pkgs/by-name/im/imposm/package.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

34 lines
805 B
Nix

{ lib, buildGoModule, fetchFromGitHub, leveldb, geos }:
buildGoModule rec {
pname = "imposm";
version = "0.13.2";
src = fetchFromGitHub {
owner = "omniscale";
repo = "imposm3";
rev = "v${version}";
hash = "sha256-KIQA2OXJldM+LJw5vv63vppE7J08gWjJzAc/GLnrImA=";
};
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";
};
}