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-03-20 09:12:57 +00:00
version = "1.19.1";
2024-01-09 10:25:46 +00:00
src = fetchFromGitHub {
owner = "protomaps";
repo = "go-pmtiles";
rev = "v${version}";
2024-03-20 09:12:57 +00:00
hash = "sha256-JVx543uatVUWD1TmnjJBz4X/oHPKpbrGpGcxQd2IYiw=";
2024-01-09 10:25:46 +00:00
};
2024-03-20 09:12:57 +00:00
vendorHash = "sha256-N/8n3NDHShcXjPvLSkLRacY4aqFzLYM/+/mJRGXQAVg=";
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";
};
}