nixpkgs/pkgs/by-name/pm/pmtiles/package.nix

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

29 lines
787 B
Nix
Raw Normal View History

2024-01-09 10:25:46 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "pmtiles";
2024-02-15 21:15:07 +00:00
version = "1.17.0";
2024-01-09 10:25:46 +00:00
src = fetchFromGitHub {
owner = "protomaps";
repo = "go-pmtiles";
rev = "v${version}";
2024-02-15 21:15:07 +00:00
hash = "sha256-BHzQMSIE94LW6SGcpaMdX/ztzVLlmWquwWMbruLAt00=";
2024-01-09 10:25:46 +00:00
};
2024-01-29 04:34:50 +00:00
vendorHash = "sha256-tSQjCdgEXIGlSWcIB6lLQulAiEAebgW3pXL9Z2ujgIs=";
2024-01-09 10:25:46 +00:00
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 = "The 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";
};
}