bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
28 lines
783 B
Nix
28 lines
783 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
buildGoModule rec {
|
|
pname = "pmtiles";
|
|
version = "1.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "protomaps";
|
|
repo = "go-pmtiles";
|
|
rev = "v${version}";
|
|
hash = "sha256-ZwTZtMNgQE0AIbxdjA+8CFKSp1B9QnV5wmP+z/JoIpg=";
|
|
};
|
|
|
|
vendorHash = "sha256-Buzk+rPSPrs0q+g6MWVb47cAIKMxsNXlj3CWA0JINXM=";
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" ];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/go-pmtiles $out/bin/pmtiles
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Single-file utility for creating and working with PMTiles archives";
|
|
homepage = "https://github.com/protomaps/go-pmtiles";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.theaninova ];
|
|
mainProgram = "pmtiles";
|
|
};
|
|
}
|