nixpkgs/pkgs/by-name/im/imposm/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
805 B
Nix
Raw Normal View History

2024-05-04 15:58:03 +00:00
{ lib, buildGoModule, fetchFromGitHub, leveldb, geos }:
buildGoModule rec {
pname = "imposm";
2024-07-22 14:52:23 +00:00
version = "0.14.0";
2024-05-04 15:58:03 +00:00
src = fetchFromGitHub {
owner = "omniscale";
repo = "imposm3";
rev = "v${version}";
2024-07-22 14:52:23 +00:00
hash = "sha256-4PwJzR/xeVdqAiHXzMAqI2m8qeqFXLZxy9V3o59eKwA=";
2024-05-04 15:58:03 +00:00
};
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";
};
}