ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / pm / pmtiles / package.nix
blob964386dfbb4c11a33703a496810adbd3075558f4
1 { lib, buildGoModule, fetchFromGitHub }:
2 buildGoModule rec {
3   pname = "pmtiles";
4   version = "1.22.1";
6   src = fetchFromGitHub {
7     owner = "protomaps";
8     repo = "go-pmtiles";
9     rev = "v${version}";
10     hash = "sha256-b473V082jM8d0XRn4tPzVGLryFNHn5Cab3IkNWve49s=";
11   };
13   vendorHash = "sha256-QDGs0L29W4QQBeIH1Z23nI/FYdu95kLnOAIZEWPOMWw=";
15   ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" ];
17   postInstall = ''
18     mv $out/bin/go-pmtiles $out/bin/pmtiles
19   '';
21   meta = with lib; {
22     description = "Single-file utility for creating and working with PMTiles archives";
23     homepage = "https://github.com/protomaps/go-pmtiles";
24     license = licenses.bsd3;
25     maintainers = teams.geospatial.members ++ (with maintainers; [ theaninova ]);
26     mainProgram = "pmtiles";
27   };